From: Elliott Eggleston Date: Thu, 20 Dec 2018 16:39:49 +0000 (-0500) Subject: WikiPage::doUpdateRestrictions checks DB_MASTER X-Git-Tag: 1.34.0-rc.0~3129 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=fa83f0d133ff8b9e7e9c9f85e13f78371783a4ce;p=lhc%2Fweb%2Fwiklou.git 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 --- 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();