dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "resourceloader: Remove support for $context === null in getContentObj"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialDoubleRedirects.php
diff --git
a/includes/specials/SpecialDoubleRedirects.php
b/includes/specials/SpecialDoubleRedirects.php
index
fcf1bb2
..
540ac5a
100644
(file)
--- a/
includes/specials/SpecialDoubleRedirects.php
+++ b/
includes/specials/SpecialDoubleRedirects.php
@@
-21,6
+21,7
@@
* @ingroup SpecialPage
*/
* @ingroup SpecialPage
*/
+use MediaWiki\MediaWikiServices;
use Wikimedia\Rdbms\IResultWrapper;
use Wikimedia\Rdbms\IDatabase;
use Wikimedia\Rdbms\IResultWrapper;
use Wikimedia\Rdbms\IDatabase;
@@
-30,7
+31,7
@@
use Wikimedia\Rdbms\IDatabase;
*
* @ingroup SpecialPage
*/
*
* @ingroup SpecialPage
*/
-class
DoubleRedirectsPage
extends QueryPage {
+class
SpecialDoubleRedirects
extends QueryPage {
function __construct( $name = 'DoubleRedirects' ) {
parent::__construct( $name );
}
function __construct( $name = 'DoubleRedirects' ) {
parent::__construct( $name );
}
@@
-155,7
+156,9
@@
class DoubleRedirectsPage extends QueryPage {
// if the page is editable, add an edit link
if (
// check user permissions
// 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()
) {
// check, if the content model is editable through action=edit
ContentHandler::getForTitle( $titleA )->supportsDirectEditing()
) {