From: Andrew Garrett Date: Wed, 10 Dec 2008 23:15:50 +0000 (+0000) Subject: Configure extension: With DB handler, defer wfConfigureSetup() to a new hook, SetupAf... X-Git-Tag: 1.31.0-rc.0~44053 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=01f9908a0f929bc2c5f1fd3a6785b1099b7d74d1;p=lhc%2Fweb%2Fwiklou.git Configure extension: With DB handler, defer wfConfigureSetup() to a new hook, SetupAfterCache, which, as the name implies, is executed in Setup.php, after caches are initialised. This avoids some weird issues with Configure and maintenance scripts. --- diff --git a/includes/Setup.php b/includes/Setup.php index db66162f4f..859ad008b8 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -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