X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FAjaxResponse.php;h=3e42c086507bd4becaecf49a20aa2a94a52b8637;hp=0686578c174a386ca7f0df1d1d6807af33d28b42;hb=5aea96df5a7b55fe1be74dcc5259508b05d89577;hpb=202f695f671bb1b6c25ebec219da348e9935692e diff --git a/includes/AjaxResponse.php b/includes/AjaxResponse.php index 0686578c17..3e42c08650 100644 --- a/includes/AjaxResponse.php +++ b/includes/AjaxResponse.php @@ -20,6 +20,7 @@ * @file * @ingroup Ajax */ +use MediaWiki\MediaWikiServices; /** * Handle responses for Ajax requests (send headers, print @@ -82,7 +83,7 @@ class AjaxResponse { function __construct( $text = null, Config $config = null ) { $this->mCacheDuration = null; $this->mVary = null; - $this->mConfig = $config ?: ConfigFactory::getDefaultInstance()->makeConfig( 'main' ); + $this->mConfig = $config ?: MediaWikiServices::getInstance()->getMainConfig(); $this->mDisabled = false; $this->mText = '';