Add profiling to MagicWord.php

30000 GET!
This commit is contained in:
Victor Vasiliev 2008-01-20 18:46:50 +00:00
parent f35b4db3f4
commit df51a7691c

View file

@ -160,11 +160,13 @@ class MagicWord {
* @static
*/
static function &get( $id ) {
wfProfileIn( __METHOD__ );
if (!array_key_exists( $id, self::$mObjects ) ) {
$mw = new MagicWord();
$mw->load( $id );
self::$mObjects[$id] = $mw;
}
wfProfileOut( __METHOD__ );
return self::$mObjects[$id];
}