Index: trunk/phase3/includes/api/ApiQueryUserInfo.php |
— | — | @@ -73,6 +73,9 @@ |
74 | 74 | if (isset($prop['options'])) { |
75 | 75 | $vals['options'] = (is_null($wgUser->mOptions) ? User::getDefaultOptions() : $wgUser->mOptions); |
76 | 76 | } |
| 77 | + if (isset($prop['editcount'])) { |
| 78 | + $vals['editcount'] = $wgUser->getEditCount(); |
| 79 | + } |
77 | 80 | } |
78 | 81 | |
79 | 82 | $result->addValue("query", $this->getModuleName(), $vals); |
— | — | @@ -88,7 +91,8 @@ |
89 | 92 | 'hasmsg', |
90 | 93 | 'groups', |
91 | 94 | 'rights', |
92 | | - 'options' |
| 95 | + 'options', |
| 96 | + 'editcount' |
93 | 97 | )) |
94 | 98 | ); |
95 | 99 | } |
— | — | @@ -101,7 +105,8 @@ |
102 | 106 | ' hasmsg - adds a tag "message" if user has pending messages', |
103 | 107 | ' groups - lists all the groups the current user belongs to', |
104 | 108 | ' 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' |
106 | 111 | ) |
107 | 112 | ); |
108 | 113 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -464,6 +464,7 @@ |
465 | 465 | * (bug 12718) Added action=paraminfo module that provides information about API modules and their parameters |
466 | 466 | * Added iiurlwidth and iiurlheight parameters to prop=imageinfo |
467 | 467 | * Added format=txt and format=dbg, imported from query.php |
| 468 | +* Added uiprop=editcount to meta=userinfo |
468 | 469 | |
469 | 470 | === Languages updated in 1.12 === |
470 | 471 | |