Merge live hack from wmf-deployment r53208: profiling for LanguageGetMagic hook call
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 14 Sep 2009 21:30:01 +0000 (21:30 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 14 Sep 2009 21:30:01 +0000 (21:30 +0000)
languages/Language.php

index 3386a44..32f9e8a 100644 (file)
@@ -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];