From: Brion Vibber Date: Mon, 14 Sep 2009 21:30:01 +0000 (+0000) Subject: Merge live hack from wmf-deployment r53208: profiling for LanguageGetMagic hook call X-Git-Tag: 1.31.0-rc.0~39732 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=7d67e73e845fbe3a09a27a68b003d65c05d92fa5;p=lhc%2Fweb%2Fwiklou.git Merge live hack from wmf-deployment r53208: profiling for LanguageGetMagic hook call --- diff --git a/languages/Language.php b/languages/Language.php index 3386a44a61..32f9e8a2a8 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1945,7 +1945,9 @@ class Language { function getMagic( $mw ) { if ( !$this->mMagicHookDone ) { $this->mMagicHookDone = true; + wfProfileIn( 'LanguageGetMagic' ); wfRunHooks( 'LanguageGetMagic', array( &$this->mMagicExtensions, $this->getCode() ) ); + wfProfileOut( 'LanguageGetMagic' ); } if ( isset( $this->mMagicExtensions[$mw->mId] ) ) { $rawEntry = $this->mMagicExtensions[$mw->mId];