From: David Causse Date: Fri, 13 Jul 2018 09:25:10 +0000 (+0200) Subject: [PageArchive] Fetch ar_rev_id instead of ar_id X-Git-Tag: 1.34.0-rc.0~4789 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=ee750cc65634ac17a214f547f26f8e5dba5769a9;p=lhc%2Fweb%2Fwiklou.git [PageArchive] Fetch ar_rev_id instead of ar_id Introduced in I92afda8, the query fetches ar_id but the code expects ar_rev_id. Change-Id: I4e2031f96257449a264142a6d697aca802e897df --- diff --git a/includes/page/PageArchive.php b/includes/page/PageArchive.php index fc079e260d..aa34dd24c2 100644 --- a/includes/page/PageArchive.php +++ b/includes/page/PageArchive.php @@ -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 < ' .