mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 08:13:53 +00:00
Merge "Use MediaWikiServices::getFileBackendGroup"
This commit is contained in:
commit
b330a8c463
|
@ -2,6 +2,7 @@
|
|||
|
||||
use MediaWiki\Auth\AuthenticationRequest;
|
||||
use MediaWiki\Auth\AuthManager;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
|
||||
/**
|
||||
* FancyCaptcha for displaying captchas precomputed by captcha.py
|
||||
|
@ -18,7 +19,8 @@ class FancyCaptcha extends SimpleCaptcha {
|
|||
global $wgCaptchaFileBackend, $wgCaptchaDirectory;
|
||||
|
||||
if ( $wgCaptchaFileBackend ) {
|
||||
return FileBackendGroup::singleton()->get( $wgCaptchaFileBackend );
|
||||
return MediaWikiServices::getInstance()->getFileBackendGroup()
|
||||
->get( $wgCaptchaFileBackend );
|
||||
} else {
|
||||
static $backend = null;
|
||||
if ( !$backend ) {
|
||||
|
|
Loading…
Reference in a new issue