Index: trunk/phase3/includes/Revision.php |
— | — | @@ -297,7 +297,7 @@ |
298 | 298 | 'rev_text_id', |
299 | 299 | 'rev_timestamp', |
300 | 300 | 'rev_comment', |
301 | | - 'rev_user_text,'. |
| 301 | + 'rev_user_text', |
302 | 302 | 'rev_user', |
303 | 303 | 'rev_minor_edit', |
304 | 304 | 'rev_deleted', |
— | — | @@ -397,8 +397,9 @@ |
398 | 398 | $this->mTitle = null; # Load on demand if needed |
399 | 399 | $this->mCurrent = false; |
400 | 400 | # If we still have no len_size, see it we have the text to figure it out |
401 | | - if ( !$this->mSize ) |
| 401 | + if ( !$this->mSize ) { |
402 | 402 | $this->mSize = is_null( $this->mText ) ? null : strlen( $this->mText ); |
| 403 | + } |
403 | 404 | } else { |
404 | 405 | throw new MWException( 'Revision constructor passed invalid row format.' ); |
405 | 406 | } |