"Reedy" posted a comment on MediaWiki.r105301.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/105301#c27111
Commit summary for MediaWiki.r105301:
Add a getExpiry method to Block (rather than direct member variable access.
Yuck)
Reedy's comment:
Looks like it's picked it up automagically
<pre>
if ( $row->ipb_expiry == $db->getInfinity() ) {
$this->mExpiry = 'infinity';
} else {
$this->mExpiry = wfTimestamp( TS_MW, $row->ipb_expiry );
}
</pre>
<pre>
* @return Mixed: String / false The same date in the format specified in
$outputtype or false
*/
function wfTimestamp( $outputtype = TS_UNIX, $ts = 0 ) {
</pre>
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview