From fa83f0d133ff8b9e7e9c9f85e13f78371783a4ce Mon Sep 17 00:00:00 2001 From: Elliott Eggleston Date: Thu, 20 Dec 2018 11:39:49 -0500 Subject: [PATCH] WikiPage::doUpdateRestrictions checks DB_MASTER This would prevent double entries in logs when the same protection is applied twice within a few minutes. Trying out usage of the parent patch's new functionality. Bug: T210983 Change-Id: Ibd6e481db2faa5955f52f36d5d7368adc8747c9c --- includes/page/WikiPage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php index c7c706911c..b1bf7bd9d4 100644 --- a/includes/page/WikiPage.php +++ b/includes/page/WikiPage.php @@ -2147,6 +2147,7 @@ class WikiPage implements Page, IDBAccessObject { } $this->loadPageData( 'fromdbmaster' ); + $this->mTitle->loadRestrictions( null, Title::READ_LATEST ); $restrictionTypes = $this->mTitle->getRestrictionTypes(); $id = $this->getId(); -- 2.20.1