r85757 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85756‎ | r85757 | r85758 >
Date:12:27, 10 April 2011
Author:reedy
Status:ok
Tags:
Comment:
* (bug 28364) add registration date 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
@@ -127,6 +127,13 @@
128128 }
129129 }
130130
 131+ if ( isset( $this->prop['registrationdate'] ) ) {
 132+ $regDate = $wgUser->getRegistration();
 133+ if ( $regDate !== false ) {
 134+ $vals['registrationdate'] = wfTimestamp( TS_ISO_8601, $regDate );
 135+ }
 136+ }
 137+
131138 if ( isset( $this->prop['acceptlang'] ) ) {
132139 $langs = $wgRequest->getAcceptLang();
133140 $acceptLang = array();
@@ -193,6 +200,7 @@
194201 'email',
195202 'realname',
196203 'acceptlang',
 204+ 'registrationdate'
197205 )
198206 )
199207 );
@@ -214,6 +222,7 @@
215223 ' realname - Adds the user\'s real name',
216224 ' email - Adds the user\'s email address and email authentication date',
217225 ' acceptlang - Echoes the Accept-Language header sent by the client in a structured format',
 226+ ' registrationdate - Adds the user\'s registration date',
218227 )
219228 );
220229 }
Index: trunk/phase3/RELEASE-NOTES
@@ -328,6 +328,7 @@
329329 * (bug 28368) add hint for multipart/form-data to api information of
330330 action=import&xml=
331331 * (bug 28391) action=feedwatchlist&allrev should be a bool
 332+* (bug 28364) add registration date to meta=userinfo
332333
333334 === Languages updated in 1.18 ===
334335

Status & tagging log