Code cleanups & fixed strange comma
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 19 Oct 2011 21:21:20 +0000 (21:21 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 19 Oct 2011 21:21:20 +0000 (21:21 +0000)
includes/Revision.php

index cd5e13f..6ea6544 100644 (file)
@@ -297,7 +297,7 @@ class Revision {
                        'rev_text_id',
                        'rev_timestamp',
                        'rev_comment',
-                       'rev_user_text,'.
+                       'rev_user_text',
                        'rev_user',
                        'rev_minor_edit',
                        'rev_deleted',
@@ -397,8 +397,9 @@ class Revision {
                        $this->mTitle     = null; # Load on demand if needed
                        $this->mCurrent   = false;
                        # If we still have no len_size, see it we have the text to figure it out
-                       if ( !$this->mSize )
+                       if ( !$this->mSize ) {
                                $this->mSize      = is_null( $this->mText ) ? null : strlen( $this->mText );
+                       }
                } else {
                        throw new MWException( 'Revision constructor passed invalid row format.' );
                }