r30080 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r30079‎ | r30080 | r30081 >
Date:20:13, 23 January 2008
Author:catrope
Status:old
Tags:
Comment:
API: Added uiprop=editcount to meta=userinfo
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryUserInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryUserInfo.php
@@ -73,6 +73,9 @@
7474 if (isset($prop['options'])) {
7575 $vals['options'] = (is_null($wgUser->mOptions) ? User::getDefaultOptions() : $wgUser->mOptions);
7676 }
 77+ if (isset($prop['editcount'])) {
 78+ $vals['editcount'] = $wgUser->getEditCount();
 79+ }
7780 }
7881
7982 $result->addValue("query", $this->getModuleName(), $vals);
@@ -88,7 +91,8 @@
8992 'hasmsg',
9093 'groups',
9194 'rights',
92 - 'options'
 95+ 'options',
 96+ 'editcount'
9397 ))
9498 );
9599 }
@@ -101,7 +105,8 @@
102106 ' hasmsg - adds a tag "message" if user has pending messages',
103107 ' groups - lists all the groups the current user belongs to',
104108 ' rights - lists of all rights the current user has',
105 - ' options - lists all preferences the current user has set'
 109+ ' options - lists all preferences the current user has set',
 110+ ' editcount - adds the user\'s edit count'
106111 )
107112 );
108113 }
Index: trunk/phase3/RELEASE-NOTES
@@ -464,6 +464,7 @@
465465 * (bug 12718) Added action=paraminfo module that provides information about API modules and their parameters
466466 * Added iiurlwidth and iiurlheight parameters to prop=imageinfo
467467 * Added format=txt and format=dbg, imported from query.php
 468+* Added uiprop=editcount to meta=userinfo
468469
469470 === Languages updated in 1.12 ===
470471

Status & tagging log