X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSetup.php;h=68e3d96afe489661db5245534f32ed15d22bc1fe;hb=70d1bc00919efb1cbfd00e85bbf65b8e947cbdb6;hp=ac00fab74196bf07512c87ecc996c543b20c2359;hpb=1abc89fc7651e122ca53fe874eecb89f30b5ba35;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' );