From 8f61a169009915d6b2659478304e5805f4c7f4ce Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 31 Jan 2014 08:34:21 -0800 Subject: [PATCH] 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 --- includes/Setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ); } -- 2.20.1