Committed a bunch of live hacks from Wikimedia servers
[lhc/web/wiklou.git] / includes / Setup.php
index 2a8e6e5..d529fea 100644 (file)
@@ -184,7 +184,10 @@ wfProfileIn( $fname.'-extensions' );
 # of the extension file. This allows the extension to perform
 # any necessary initialisation in the fully initialised environment
 foreach ( $wgExtensionFunctions as $func ) {
+       $profName = $fname.'-extensions-'.strval( $func );
+       wfProfileIn( $profName );
        call_user_func( $func );
+       wfProfileOut( $profName );
 }
 
 // For compatibility