From: umherirrender Date: Wed, 28 Jan 2015 18:16:44 +0000 (+0100) Subject: Pass user to Title::userCan in InfoAction X-Git-Tag: 1.31.0-rc.0~12585 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=6a84f22b05e2c8fc09658f25b2f8ae78d2958e83;p=lhc%2Fweb%2Fwiklou.git Pass user to Title::userCan in InfoAction Change-Id: Id4dac8ca3b36839abdb184d0ad538b2400aa80ff --- diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index 9e4a150ed4..beac822006 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -276,7 +276,9 @@ class InfoAction extends FormlessAction { // Language in which the page content is (supposed to be) written $pageLang = $title->getPageLanguage()->getCode(); - if ( $config->get( 'PageLanguageUseDB' ) && $this->getTitle()->userCan( 'pagelang' ) ) { + if ( $config->get( 'PageLanguageUseDB' ) + && $this->getTitle()->userCan( 'pagelang', $this->getUser() ) + ) { // Link to Special:PageLanguage with pre-filled page title if user has permissions $titleObj = SpecialPage::getTitleFor( 'PageLanguage', $title->getPrefixedText() ); $langDisp = Linker::link(