From 4de36baa63afc23398f5d1747f08fc47309c314c Mon Sep 17 00:00:00 2001 From: addshore Date: Thu, 28 Dec 2017 13:14:39 +0000 Subject: [PATCH] [MCR] pass $queryFlags into RevisionStore::getTitle Bug: T183716 Bug: T183717 Bug: T183505 Change-Id: I15e4663902e2cbfe15b0da2e46449330e313bd0d --- includes/Storage/RevisionStore.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Storage/RevisionStore.php b/includes/Storage/RevisionStore.php index 44dab1368b..2698f13056 100644 --- a/includes/Storage/RevisionStore.php +++ b/includes/Storage/RevisionStore.php @@ -1076,7 +1076,7 @@ class RevisionStore implements IDBAccessObject, RevisionFactory, RevisionLookup $pageId = isset( $row->rev_page ) ? $row->rev_page : 0; // XXX: also check page_id? $revId = isset( $row->rev_id ) ? $row->rev_id : 0; - $title = $this->getTitle( $pageId, $revId ); + $title = $this->getTitle( $pageId, $revId, $queryFlags ); } if ( !isset( $row->page_latest ) ) { @@ -1144,7 +1144,7 @@ class RevisionStore implements IDBAccessObject, RevisionFactory, RevisionLookup $pageId = isset( $fields['page'] ) ? $fields['page'] : 0; $revId = isset( $fields['id'] ) ? $fields['id'] : 0; - $title = $this->getTitle( $pageId, $revId ); + $title = $this->getTitle( $pageId, $revId, $queryFlags ); } if ( !isset( $fields['page'] ) ) { -- 2.20.1