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
Replace usages of deprecated User::isAllowed. Step 2.
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialPasswordReset.php
diff --git
a/includes/specials/SpecialPasswordReset.php
b/includes/specials/SpecialPasswordReset.php
index
3524d79
..
2ef96ad
100644
(file)
--- a/
includes/specials/SpecialPasswordReset.php
+++ b/
includes/specials/SpecialPasswordReset.php
@@
-22,6
+22,7
@@
*/
use MediaWiki\Auth\AuthManager;
*/
use MediaWiki\Auth\AuthManager;
+use MediaWiki\MediaWikiServices;
/**
* Special page for requesting a password reset email.
/**
* Special page for requesting a password reset email.
@@
-52,7
+53,11
@@
class SpecialPasswordReset extends FormSpecialPage {
private function getPasswordReset() {
if ( $this->passwordReset === null ) {
private function getPasswordReset() {
if ( $this->passwordReset === null ) {
- $this->passwordReset = new PasswordReset( $this->getConfig(), AuthManager::singleton() );
+ $this->passwordReset = new PasswordReset(
+ $this->getConfig(),
+ AuthManager::singleton(),
+ MediaWikiServices::getInstance()->getPermissionManager()
+ );
}
return $this->passwordReset;
}
}
return $this->passwordReset;
}