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
Bump and prep 1.34.1
[lhc/web/wiklou.git]
/
includes
/
actions
/
SpecialPageAction.php
diff --git
a/includes/actions/SpecialPageAction.php
b/includes/actions/SpecialPageAction.php
index
e59b6d6
..
56be456
100644
(file)
--- a/
includes/actions/SpecialPageAction.php
+++ b/
includes/actions/SpecialPageAction.php
@@
-18,6
+18,8
@@
* @ingroup Actions
*/
* @ingroup Actions
*/
+use MediaWiki\MediaWikiServices;
+
/**
* An action that just passes the request to the relevant special page
*
/**
* An action that just passes the request to the relevant special page
*
@@
-33,6
+35,9
@@
class SpecialPageAction extends FormlessAction {
'editchangetags' => 'EditTags',
];
'editchangetags' => 'EditTags',
];
+ /**
+ * @inheritDoc
+ */
public function getName() {
$request = $this->getRequest();
$actionName = $request->getVal( 'action', 'view' );
public function getName() {
$request = $this->getRequest();
$actionName = $request->getVal( 'action', 'view' );
@@
-92,6
+97,7
@@
class SpecialPageAction extends FormlessAction {
}
// map actions to (whitelisted) special pages
}
// map actions to (whitelisted) special pages
- return SpecialPageFactory::getPage( self::$actionToSpecialPageMapping[$action] );
+ return MediaWikiServices::getInstance()->getSpecialPageFactory()->
+ getPage( self::$actionToSpecialPageMapping[$action] );
}
}
}
}