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 "Chinese Conversion Table Update 2016-7"
[lhc/web/wiklou.git]
/
includes
/
resourceloader
/
ResourceLoaderModule.php
diff --git
a/includes/resourceloader/ResourceLoaderModule.php
b/includes/resourceloader/ResourceLoaderModule.php
index
3e94460
..
8124f33
100644
(file)
--- a/
includes/resourceloader/ResourceLoaderModule.php
+++ b/
includes/resourceloader/ResourceLoaderModule.php
@@
-22,9
+22,11
@@
* @author Roan Kattouw
*/
* @author Roan Kattouw
*/
+use MediaWiki\MediaWikiServices;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;
+use Wikimedia\ScopedCallback;
/**
* Abstraction for ResourceLoader modules, with name registration and maxage functionality.
/**
* Abstraction for ResourceLoader modules, with name registration and maxage functionality.
@@
-186,7
+188,7
@@
abstract class ResourceLoaderModule implements LoggerAwareInterface {
public function getConfig() {
if ( $this->config === null ) {
// Ugh, fall back to default
public function getConfig() {
if ( $this->config === null ) {
// Ugh, fall back to default
- $this->config =
ConfigFactory::getDefaultInstance()->makeConfig( 'main'
);
+ $this->config =
MediaWikiServices::getInstance()->getMainConfig(
);
}
return $this->config;
}
return $this->config;
@@
-329,14
+331,13
@@
abstract class ResourceLoaderModule implements LoggerAwareInterface {
}
/**
}
/**
- * Where on the HTML page should this module's JS be loaded?
- * - 'top': in the "<head>"
- * - 'bottom': at the bottom of the "<body>"
+ * From where in the page HTML should this module be loaded?
*
*
+ * @deprecated since 1.29 Obsolete. All modules load async from `<head>`.
* @return string
*/
public function getPosition() {
* @return string
*/
public function getPosition() {
- return '
bottom
';
+ return '
top
';
}
/**
}
/**