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 1.31.1
[lhc/web/wiklou.git]
/
includes
/
AjaxResponse.php
diff --git
a/includes/AjaxResponse.php
b/includes/AjaxResponse.php
index
0686578
..
3e42c08
100644
(file)
--- a/
includes/AjaxResponse.php
+++ b/
includes/AjaxResponse.php
@@
-20,6
+20,7
@@
* @file
* @ingroup Ajax
*/
* @file
* @ingroup Ajax
*/
+use MediaWiki\MediaWikiServices;
/**
* Handle responses for Ajax requests (send headers, print
/**
* 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;
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 = '';
$this->mDisabled = false;
$this->mText = '';