X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2FSetup.php;h=68e3d96afe489661db5245534f32ed15d22bc1fe;hb=feaf1daca9a0614efd35278e196a0fc18cb381a3;hp=ac00fab74196bf07512c87ecc996c543b20c2359;hpb=f4a53c54065c385172363416eb3cb44b67585ca2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Setup.php b/includes/Setup.php index ac00fab741..68e3d96afe 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -282,6 +282,11 @@ foreach ( $wgForeignFileRepos as &$repo ) { } unset( $repo ); // no global pollution; destroy reference +// Convert this deprecated setting to modern system +if ( $wgExperimentalHtmlIds ) { + $wgFragmentMode = [ 'html5-legacy', 'legacy' ]; +} + $rcMaxAgeDays = $wgRCMaxAge / ( 3600 * 24 ); if ( $wgRCFilterByAge ) { // Trim down $wgRCLinkDays so that it only lists links which are valid @@ -687,7 +692,7 @@ $messageMemc = wfGetMessageCacheStorage(); /** * @deprecated since 1.30 */ -$parserMemc = new DeprecatedGlobal( 'parserMemc', function() { +$parserMemc = new DeprecatedGlobal( 'parserMemc', function () { return MediaWikiServices::getInstance()->getParserCache()->getCacheStorage(); }, '1.30' );