From 7d67e73e845fbe3a09a27a68b003d65c05d92fa5 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 14 Sep 2009 21:30:01 +0000 Subject: [PATCH] Merge live hack from wmf-deployment r53208: profiling for LanguageGetMagic hook call --- languages/Language.php | 2 ++ 1 file changed, 2 insertions(+) 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]; -- 2.20.1