From: Tim Starling Date: Wed, 3 Jun 2009 06:28:19 +0000 (+0000) Subject: Profiling for CPF::gender() X-Git-Tag: 1.31.0-rc.0~41531 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=df41d898a7e80c34a2cf79ec756b05547cc61910;p=lhc%2Fweb%2Fwiklou.git Profiling for CPF::gender() --- diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index e6b613cee0..308a4e8c44 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -202,6 +202,7 @@ class CoreParserFunctions { } static function gender( $parser, $user ) { + wfProfileIn( __METHOD__ ); $forms = array_slice( func_get_args(), 2); // default @@ -221,7 +222,9 @@ class CoreParserFunctions { global $wgUser; $gender = $wgUser->getOption( 'gender' ); } - return $parser->getFunctionLang()->gender( $gender, $forms ); + $ret = $parser->getFunctionLang()->gender( $gender, $forms ); + wfProfileOut( __METHOD__ ); + return $ret; } static function plural( $parser, $text = '') { $forms = array_slice( func_get_args(), 2);