Fixed newFromArchiveRow to check for ar_page_id
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 25 Jul 2011 18:19:48 +0000 (18:19 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 25 Jul 2011 18:19:48 +0000 (18:19 +0000)
includes/Revision.php

index 6053700..527f0e1 100644 (file)
@@ -101,7 +101,7 @@ class Revision {
         */
        public static function newFromArchiveRow( $row, $overrides = array() ) {
                $attribs = $overrides + array(
-                       'page'       => isset( $row->page_id ) ? $row->page_id : null,
+                       'page'       => isset( $row->ar_page_id ) ? $row->ar_page_id : null,
                        'id'         => isset( $row->ar_rev_id ) ? $row->ar_rev_id : null,
                        'comment'    => $row->ar_comment,
                        'user'       => $row->ar_user,