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 "Sanitizer: Allow attribute names to use any Unicode "Letter" or "Number""
[lhc/web/wiklou.git]
/
includes
/
AjaxDispatcher.php
diff --git
a/includes/AjaxDispatcher.php
b/includes/AjaxDispatcher.php
index
9142238
..
2adbc80
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
*/
@@
-90,7
+92,6
@@
class AjaxDispatcher {
# Or we could throw an exception:
# throw new MWException( __METHOD__ . ' called without any data (mode empty).' );
}
# Or we could throw an exception:
# throw new MWException( __METHOD__ . ' called without any data (mode empty).' );
}
-
}
/**
}
/**
@@
-136,7
+137,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();
@@
-156,6
+158,5
@@
class AjaxDispatcher {
}
}
}
}
}
}
-
}
}
}
}