Index: trunk/phase3/includes/Revision.php |
— | — | @@ -316,7 +316,7 @@ |
317 | 317 | $this->mMinorEdit = isset( $row['minor_edit'] ) ? intval( $row['minor_edit'] ) : 0; |
318 | 318 | $this->mTimestamp = isset( $row['timestamp'] ) ? strval( $row['timestamp'] ) : wfTimestamp( TS_MW ); |
319 | 319 | $this->mDeleted = isset( $row['deleted'] ) ? intval( $row['deleted'] ) : 0; |
320 | | - $this->mSize = isset( $row['len'] ) ? intval( $row['len'] ) : 0; |
| 320 | + $this->mSize = isset( $row['len'] ) ? intval( $row['len'] ) : null; |
321 | 321 | |
322 | 322 | // Enforce spacing trimming on supplied text |
323 | 323 | $this->mComment = isset( $row['comment'] ) ? trim( strval( $row['comment'] ) ) : null; |
— | — | @@ -712,7 +712,7 @@ |
713 | 713 | 'rev_user_text' => $this->mUserText, |
714 | 714 | 'rev_timestamp' => $dbw->timestamp( $this->mTimestamp ), |
715 | 715 | 'rev_deleted' => $this->mDeleted, |
716 | | - 'rev_len' => ( $this->mSize ) ? $this->mSize : strlen($this->mText), |
| 716 | + 'rev_len' => $this->mSize, |
717 | 717 | ), $fname |
718 | 718 | ); |
719 | 719 | |