From: Tim Starling Date: Mon, 22 Jan 2007 19:19:43 +0000 (+0000) Subject: profiling X-Git-Tag: 1.31.0-rc.0~54218 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=59fb689746c3d1122974f5041bb53837788ad644;p=lhc%2Fweb%2Fwiklou.git profiling --- diff --git a/includes/User.php b/includes/User.php index b9706d5f11..6475a2f03e 100644 --- a/includes/User.php +++ b/includes/User.php @@ -545,6 +545,7 @@ class User { * @static */ static function edits( $uid ) { + wfProfileIn( __METHOD__ ); $dbr =& wfGetDB( DB_SLAVE ); // check if the user_editcount field has been initialized @@ -567,10 +568,11 @@ class User { array( 'user_id' => $uid ), __METHOD__ ); - return $count; } else { - return $field; + $count = $field; } + wfProfileOut( __METHOD__ ); + return $count; } /**