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 "OutputPage::getCategories(): Add a possibility to distinguish "normal" and...
[lhc/web/wiklou.git]
/
includes
/
auth
/
Throttler.php
diff --git
a/includes/auth/Throttler.php
b/includes/auth/Throttler.php
index
000b070
..
6d3b2f4
100644
(file)
--- a/
includes/auth/Throttler.php
+++ b/
includes/auth/Throttler.php
@@
-23,6
+23,7
@@
namespace MediaWiki\Auth;
use BagOStuff;
use MediaWiki\Logger\LoggerFactory;
use BagOStuff;
use MediaWiki\Logger\LoggerFactory;
+use MediaWiki\MediaWikiServices;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel;
@@
-68,7
+69,7
@@
class Throttler implements LoggerAwareInterface {
}
if ( $conditions === null ) {
}
if ( $conditions === null ) {
- $config =
\ConfigFactory::getDefaultInstance()->makeConfig( 'main'
);
+ $config =
MediaWikiServices::getInstance()->getMainConfig(
);
$conditions = $config->get( 'PasswordAttemptThrottle' );
$params += [
'type' => 'password',
$conditions = $config->get( 'PasswordAttemptThrottle' );
$params += [
'type' => 'password',