From 59fb689746c3d1122974f5041bb53837788ad644 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 22 Jan 2007 19:19:43 +0000 Subject: [PATCH] profiling --- includes/User.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } /** -- 2.20.1