X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSetup.php;h=209edefc282c359b1f9e757f081cb92afb53ccf9;hb=5b52c881be2c791209ec1d24cfab5790e19b0ec8;hp=531d1a46e3cc1079f692ec6529d593154c2b2ecd;hpb=917b3335dac4a03a27c3732ae8e7c648739403e0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Setup.php b/includes/Setup.php index 531d1a46e3..209edefc28 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -341,11 +341,6 @@ if ( !$wgEnotifMinorEdits ) { $wgHiddenPrefs[] = 'enotifminoredits'; } -# $wgDisabledActions is deprecated as of 1.18 -foreach ( $wgDisabledActions as $action ) { - $wgActions[$action] = false; -} - # We always output HTML5 since 1.22, overriding these is no longer supported # we set them here for extensions that depend on its value. $wgHtml5 = true; @@ -457,6 +452,11 @@ if ( !$wgHTCPRouting && $wgHTCPMulticastAddress ) { ); } +// Back compatibility for $wgRateLimitLog deprecated with 1.23 +if ( $wgRateLimitLog && ! array_key_exists( 'ratelimit', $wgDebugLogGroups ) ) { + $wgDebugLogGroups['ratelimit'] = $wgRateLimitLog; +} + wfProfileOut( $fname . '-defaults2' ); wfProfileIn( $fname . '-misc1' ); @@ -560,7 +560,7 @@ $wgOut = RequestContext::getMain()->getOutput(); # BackCompat $wgParser = new StubObject( 'wgParser', $wgParserConf['class'], array( $wgParserConf ) ); if ( !is_object( $wgAuth ) ) { - $wgAuth = new StubObject( 'wgAuth', 'AuthPlugin' ); + $wgAuth = new AuthPlugin; wfRunHooks( 'AuthPluginSetup', array( &$wgAuth ) ); }