From: Thalia Date: Wed, 30 Jan 2019 22:32:52 +0000 (-0800) Subject: Avoid making master connection from Skin::getUndeleteLink X-Git-Tag: 1.34.0-rc.0~2981^2 X-Git-Url: http://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=7fc8b36288adcd140da212cbe0cf443b98c2cd16 Avoid making master connection from Skin::getUndeleteLink Do this by calling Title:quickUserCan instead of Title::userCan from Skin::getUndeleteLink. Bug: T214735 Change-Id: I24dfd86275638e52012a5647ab3e5c848af840c2 --- diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index 7a2679e4c8..54dfff30bd 100644 --- a/includes/skins/Skin.php +++ b/includes/skins/Skin.php @@ -719,7 +719,7 @@ abstract class Skin extends ContextSource { $title = $this->getTitle(); if ( ( !$title->exists() || $action == 'history' ) && - $title->userCan( 'deletedhistory', $this->getUser() ) + $title->quickUserCan( 'deletedhistory', $this->getUser() ) ) { $n = $title->isDeleted();