From: Chad Horohoe Date: Fri, 31 Jan 2014 16:34:21 +0000 (-0800) Subject: Remove stubiness from AuthPlugin X-Git-Tag: 1.31.0-rc.0~16986 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=8f61a169009915d6b2659478304e5805f4c7f4ce;p=lhc%2Fweb%2Fwiklou.git Remove stubiness from AuthPlugin The point of stubs is to delay loading tons of code as late as possible. AuthPlugin is about the same size as StubObject, so we're not really saving anything. Change-Id: Icb36e47a8e9ff9f0f60ac1a8f1698102a1aa2366 --- diff --git a/includes/Setup.php b/includes/Setup.php index 531d1a46e3..40b339540a 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -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 ) ); }