Configure extension: With DB handler, defer wfConfigureSetup() to a new hook, SetupAf...
authorAndrew Garrett <werdna@users.mediawiki.org>
Wed, 10 Dec 2008 23:15:50 +0000 (23:15 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Wed, 10 Dec 2008 23:15:50 +0000 (23:15 +0000)
This avoids some weird issues with Configure and maintenance scripts.

includes/Setup.php

index db66162..859ad00 100644 (file)
@@ -209,6 +209,10 @@ wfDebug( 'Main cache: ' . get_class( $wgMemc ) .
        "\nParser cache: " . get_class( $parserMemc ) . "\n" );
 
 wfProfileOut( $fname.'-memcached' );
+
+## Most of the config is out, some might want to run hooks here.
+wfRunHooks( 'SetupAfterCache' );
+
 wfProfileIn( $fname.'-SetupSession' );
 
 # Set default shared prefix