r107596 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107595‎ | r107596 | r107597 >
Date:20:45, 29 December 2011
Author:ialex
Status:ok
Tags:
Comment:
Use wfTimestampNow() instead of wfTimestamp() without second parameter
Modified paths:
  • /trunk/phase3/includes/Revision.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Revision.php
@@ -436,7 +436,7 @@
437437 $this->mUserText = isset( $row['user_text'] ) ? strval( $row['user_text'] ) : $wgUser->getName();
438438 $this->mUser = isset( $row['user'] ) ? intval( $row['user'] ) : $wgUser->getId();
439439 $this->mMinorEdit = isset( $row['minor_edit'] ) ? intval( $row['minor_edit'] ) : 0;
440 - $this->mTimestamp = isset( $row['timestamp'] ) ? strval( $row['timestamp'] ) : wfTimestamp( TS_MW );
 440+ $this->mTimestamp = isset( $row['timestamp'] ) ? strval( $row['timestamp'] ) : wfTimestampNow();
441441 $this->mDeleted = isset( $row['deleted'] ) ? intval( $row['deleted'] ) : 0;
442442 $this->mSize = isset( $row['len'] ) ? intval( $row['len'] ) : null;
443443 $this->mParentId = isset( $row['parent_id'] ) ? intval( $row['parent_id'] ) : null;

Status & tagging log