[PageArchive] Fetch ar_rev_id instead of ar_id
authorDavid Causse <dcausse@wikimedia.org>
Fri, 13 Jul 2018 09:25:10 +0000 (11:25 +0200)
committerDavid Causse <dcausse@wikimedia.org>
Fri, 13 Jul 2018 09:25:10 +0000 (11:25 +0200)
Introduced in I92afda8, the query fetches ar_id but the code expects
ar_rev_id.

Change-Id: I4e2031f96257449a264142a6d697aca802e897df

includes/page/PageArchive.php

index fc079e2..aa34dd2 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 < ' .