From: Brion Vibber Date: Sat, 16 Jul 2005 00:06:51 +0000 (+0000) Subject: Revert commit 1.171. This is extension code, I'm not sure why it's checked in to... X-Git-Tag: 1.5.0beta4~119 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=a29a30b15ebd709b040e79fcaa5b80a39401c0a1;p=lhc%2Fweb%2Fwiklou.git Revert commit 1.171. This is extension code, I'm not sure why it's checked in to core. Also uses wrong syntax for database fields. --- diff --git a/includes/User.php b/includes/User.php index 21d050304e..42a6a89970 100644 --- a/includes/User.php +++ b/includes/User.php @@ -242,36 +242,6 @@ class User { ); } - /** - * Count the number of edits of a user by namespace - * - * @param int $uid The user ID to check - * @return array - */ - function editsByNs( $uid ) { - $fname = 'User::editsByNs'; - $nscount = array(); - - $dbr =& wfGetDB( DB_SLAVE ); - $res = $dbr->select( - array( 'user', 'revision', 'page' ), - array( 'page_namespace', 'COUNT(*) as count' ), - array( - 'user_id' => $uid, - 'rev_user' => array( false, 'user_id' ), - 'rev_page' => array( false, 'page_id' ) - ), - $fname, - array( 'GROUP BY' => 'page_namespace' ) - ); - - while( $row = $dbr->fetchObject( $res ) ) { - $nscount[$row->page_namespace] = $row->count; - } - return $nscount; - - } - /** * probably return a random password * @return string probably a random password