Umherirrender has uploaded a new change for review. https://gerrit.wikimedia.org/r/318695
Change subject: Pass user to Title::quickUserCan in InfoAction ...................................................................... Pass user to Title::quickUserCan in InfoAction Avoid use of global Change-Id: I561899446235165fb77b626b55f35ce716d798c9 --- M includes/actions/InfoAction.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/95/318695/1 diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index be3be85..1edcb58 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -282,7 +282,7 @@ // Content model of the page $modelHtml = htmlspecialchars( ContentHandler::getLocalizedName( $title->getContentModel() ) ); // If the user can change it, add a link to Special:ChangeContentModel - if ( $title->quickUserCan( 'editcontentmodel' ) ) { + if ( $title->quickUserCan( 'editcontentmodel', $this->getUser() ) ) { $modelHtml .= ' ' . $this->msg( 'parentheses' )->rawParams( $linkRenderer->makeLink( SpecialPage::getTitleValueFor( 'ChangeContentModel', $title->getPrefixedText() ), $this->msg( 'pageinfo-content-model-change' )->text() -- To view, visit https://gerrit.wikimedia.org/r/318695 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I561899446235165fb77b626b55f35ce716d798c9 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Umherirrender <umherirrender_de...@web.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits