Skip to content

Commit

Permalink
Merge pull request #40 from ghermens/dev/site-config
Browse files Browse the repository at this point in the history
[BUGFIX] Avoid repercussions from changes in site configuration form definition
  • Loading branch information
lochmueller authored Jan 16, 2025
2 parents 4b0702b + 897531e commit 50f7d5f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Configuration/SiteConfiguration/Overrides/sites.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,17 @@
],
];

$GLOBALS['SiteConfiguration']['site']['types']['0']['showitem'] = str_replace(
'base,',
'base,--div--;LLL:EXT:language_detection/Resources/Private/Language/locallang.xlf:language.detection,enableLanguageDetection,allowAllPaths,fallbackDetectionLanguage,addIpLocationToBrowserLanguage,redirectHttpStatusCode,disableRedirectWithBackendSession,forwardRedirectParameters,--palette--;MaxMind;languageDetectionMaxMind,',
$GLOBALS['SiteConfiguration']['site']['types']['0']['showitem']
);
$GLOBALS['SiteConfiguration']['site']['types']['0']['showitem'] .=
',--div--;LLL:EXT:language_detection/Resources/Private/Language/locallang.xlf:language.detection,
enableLanguageDetection,
allowAllPaths,
fallbackDetectionLanguage,
addIpLocationToBrowserLanguage,
redirectHttpStatusCode,
disableRedirectWithBackendSession,
forwardRedirectParameters,
--palette--;MaxMind;languageDetectionMaxMind,
';

$GLOBALS['SiteConfiguration']['site_language']['columns']['excludeFromLanguageDetection'] = [
'label' => 'LLL:EXT:language_detection/Resources/Private/Language/locallang.xlf:exclude.language.from.detection',
Expand All @@ -126,8 +132,4 @@
],
];

$GLOBALS['SiteConfiguration']['site_language']['types']['1']['showitem'] = str_replace(
'flag,',
'flag, excludeFromLanguageDetection, ',
$GLOBALS['SiteConfiguration']['site_language']['types']['1']['showitem']
);
$GLOBALS['SiteConfiguration']['site_language']['types']['1']['showitem'] .= ', excludeFromLanguageDetection, ';

0 comments on commit 50f7d5f

Please sign in to comment.