Index: trunk/phase3/includes/api/ApiQueryUserInfo.php |
— | — | @@ -127,6 +127,13 @@ |
128 | 128 | } |
129 | 129 | } |
130 | 130 | |
| 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 | + |
131 | 138 | if ( isset( $this->prop['acceptlang'] ) ) { |
132 | 139 | $langs = $wgRequest->getAcceptLang(); |
133 | 140 | $acceptLang = array(); |
— | — | @@ -193,6 +200,7 @@ |
194 | 201 | 'email', |
195 | 202 | 'realname', |
196 | 203 | 'acceptlang', |
| 204 | + 'registrationdate' |
197 | 205 | ) |
198 | 206 | ) |
199 | 207 | ); |
— | — | @@ -214,6 +222,7 @@ |
215 | 223 | ' realname - Adds the user\'s real name', |
216 | 224 | ' email - Adds the user\'s email address and email authentication date', |
217 | 225 | ' acceptlang - Echoes the Accept-Language header sent by the client in a structured format', |
| 226 | + ' registrationdate - Adds the user\'s registration date', |
218 | 227 | ) |
219 | 228 | ); |
220 | 229 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -328,6 +328,7 @@ |
329 | 329 | * (bug 28368) add hint for multipart/form-data to api information of |
330 | 330 | action=import&xml= |
331 | 331 | * (bug 28391) action=feedwatchlist&allrev should be a bool |
| 332 | +* (bug 28364) add registration date to meta=userinfo |
332 | 333 | |
333 | 334 | === Languages updated in 1.18 === |
334 | 335 | |