http://www.mediawiki.org/wiki/Special:Code/MediaWiki/56336

Revision: 56336
Author:   brion
Date:     2009-09-14 21:30:01 +0000 (Mon, 14 Sep 2009)

Log Message:
-----------
Merge live hack from wmf-deployment r53208: profiling for LanguageGetMagic hook 
call

Modified Paths:
--------------
    trunk/phase3/languages/Language.php

Modified: trunk/phase3/languages/Language.php
===================================================================
--- trunk/phase3/languages/Language.php 2009-09-14 21:28:50 UTC (rev 56335)
+++ trunk/phase3/languages/Language.php 2009-09-14 21:30:01 UTC (rev 56336)
@@ -1945,7 +1945,9 @@
        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];



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to