From 0cae9b7d35746faef2bc98ee524c62f35d1c003f Mon Sep 17 00:00:00 2001 From: DannyS712 Date: Wed, 12 Feb 2020 06:56:41 +0000 Subject: [PATCH] Remove use of Title::quickUserCan Bug: T244927 Change-Id: I179a4faa26b3265d162fcb0d41bd9515fef623e8 --- includes/LintErrorsPager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/LintErrorsPager.php b/includes/LintErrorsPager.php index d4adb7f3..ba1a6b48 100644 --- a/includes/LintErrorsPager.php +++ b/includes/LintErrorsPager.php @@ -123,7 +123,8 @@ class LintErrorsPager extends TablePager { case 'title': $title = Title::makeTitle( $row->page_namespace, $row->page_title ); $viewLink = $this->linkRenderer->makeLink( $title ); - $editMsgKey = $title->quickUserCan( 'edit', $this->getUser() ) ? + $permManager = MediaWikiServices::getInstance()->getPermissionManager(); + $editMsgKey = $permManager->quickUserCan( 'edit', $this->getUser(), $title ) ? 'linter-page-edit' : 'linter-page-viewsource'; $editLink = $this->linkRenderer->makeLink( $title,