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
Unwrap types in function docs from {}
[lhc/web/wiklou.git]
/
includes
/
AjaxDispatcher.php
diff --git
a/includes/AjaxDispatcher.php
b/includes/AjaxDispatcher.php
index
d444a27
..
75fcff3
100644
(file)
--- a/
includes/AjaxDispatcher.php
+++ b/
includes/AjaxDispatcher.php
@@
-21,6
+21,8
@@
* @ingroup Ajax
*/
* @ingroup Ajax
*/
+use MediaWiki\MediaWikiServices;
+
/**
* @defgroup Ajax Ajax
*/
/**
* @defgroup Ajax Ajax
*/
@@
-54,6
+56,7
@@
class AjaxDispatcher {
/**
* Load up our object with user supplied data
/**
* Load up our object with user supplied data
+ * @param Config $config
*/
function __construct( Config $config ) {
$this->config = $config;
*/
function __construct( Config $config ) {
$this->config = $config;
@@
-135,7
+138,8
@@
class AjaxDispatcher {
}
// Make sure DB commit succeeds before sending a response
}
// Make sure DB commit succeeds before sending a response
- wfGetLBFactory()->commitMasterChanges( __METHOD__ );
+ $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
+ $lbFactory->commitMasterChanges( __METHOD__ );
$result->sendHeaders();
$result->printText();
$result->sendHeaders();
$result->printText();