r47705 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47704‎ | r47705 | r47706 >
Date:13:34, 23 February 2009
Author:catrope
Status:ok
Tags:
Comment:
API: (bug 17626) Added uiprop=email 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
@@ -92,6 +92,12 @@
9393 if (isset($this->prop['ratelimits'])) {
9494 $vals['ratelimits'] = $this->getRateLimits();
9595 }
 96+ if (isset($this->prop['email'])) {
 97+ $vals['email'] = $wgUser->getEmail();
 98+ $auth = $wgUser->getEmailAuthenticationTimestamp();
 99+ if(!is_null($auth))
 100+ $vals['emailauthenticated'] = wfTimestamp(TS_ISO_8601, $auth);
 101+ }
96102 return $vals;
97103 }
98104
@@ -141,7 +147,8 @@
142148 'options',
143149 'preferencestoken',
144150 'editcount',
145 - 'ratelimits'
 151+ 'ratelimits',
 152+ 'email',
146153 )
147154 )
148155 );
Index: trunk/phase3/RELEASE-NOTES
@@ -254,6 +254,7 @@
255255 * (bug 17502) meta=siteinfo&siprop=namespacealiases no longer lists namespace
256256 aliases already listed in siprop=namespaces
257257 * (bug 17529) rvend ignored when rvstartid is specified
 258+* (bug 17626) Added uiprop=email to list=userinfo
258259
259260 === Languages updated in 1.15 ===
260261

Status & tagging log