X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialDoubleRedirects.php;h=d0d832246edcf1cdb02b540017d9a5b9f3f359e6;hp=cccca5063aa144e8d0c76e1a78d128ca77929599;hb=9c7f6734c397a954b8eaa5ec73876f2b4bf92afb;hpb=339a7c13003d8fcd8ccafd55559fc19cdaef3f11 diff --git a/includes/specials/SpecialDoubleRedirects.php b/includes/specials/SpecialDoubleRedirects.php index cccca5063a..d0d832246e 100644 --- a/includes/specials/SpecialDoubleRedirects.php +++ b/includes/specials/SpecialDoubleRedirects.php @@ -21,6 +21,7 @@ * @ingroup SpecialPage */ +use MediaWiki\MediaWikiServices; use Wikimedia\Rdbms\IResultWrapper; use Wikimedia\Rdbms\IDatabase; @@ -64,7 +65,6 @@ class SpecialDoubleRedirects extends QueryPage { 'fields' => [ 'namespace' => 'pa.page_namespace', 'title' => 'pa.page_title', - 'value' => 'pa.page_title', 'b_namespace' => 'pb.page_namespace', 'b_title' => 'pb.page_title', @@ -155,7 +155,9 @@ class SpecialDoubleRedirects extends QueryPage { // if the page is editable, add an edit link if ( // check user permissions - $this->getUser()->isAllowed( 'edit' ) && + MediaWikiServices::getInstance() + ->getPermissionManager() + ->userHasRight( $this->getUser(), 'edit' ) && // check, if the content model is editable through action=edit ContentHandler::getForTitle( $titleA )->supportsDirectEditing() ) {