Merge "resourceloader: Use 'this' to access the mw.loader.store internally"
[lhc/web/wiklou.git] / includes / page / PageArchive.php
index fc079e2..dfc7c02 100644 (file)
@@ -329,7 +329,7 @@ class PageArchive {
 
                // Check the previous deleted revision...
                $row = $dbr->selectRow( 'archive',
-                       [ 'ar_id', 'ar_timestamp' ],
+                       [ 'ar_rev_id', 'ar_timestamp' ],
                        [ 'ar_namespace' => $this->title->getNamespace(),
                                'ar_title' => $this->title->getDBkey(),
                                'ar_timestamp < ' .
@@ -767,7 +767,7 @@ class PageArchive {
                                        0,
                                        $this->title,
                                        [
-                                               'page' => $pageId,
+                                               'page_id' => $pageId,
                                                'deleted' => $unsuppress ? 0 : $row->ar_deleted
                                        ]
                                );