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
Avoid dynamic call to static method in ResourceLoaderModule::buildContent()
[lhc/web/wiklou.git]
/
includes
/
resourceloader
/
ResourceLoaderModule.php
diff --git
a/includes/resourceloader/ResourceLoaderModule.php
b/includes/resourceloader/ResourceLoaderModule.php
index
eca3a97
..
b4a0f46
100644
(file)
--- a/
includes/resourceloader/ResourceLoaderModule.php
+++ b/
includes/resourceloader/ResourceLoaderModule.php
@@
-697,7
+697,6
@@
abstract class ResourceLoaderModule implements LoggerAwareInterface {
* @return array
*/
final protected function buildContent( ResourceLoaderContext $context ) {
* @return array
*/
final protected function buildContent( ResourceLoaderContext $context ) {
- $rl = $context->getResourceLoader();
$stats = MediaWikiServices::getInstance()->getStatsdDataFactory();
$statStart = microtime( true );
$stats = MediaWikiServices::getInstance()->getStatsdDataFactory();
$statStart = microtime( true );
@@
-766,7
+765,7
@@
abstract class ResourceLoaderModule implements LoggerAwareInterface {
}
// Wrap styles into @media groups as needed and flatten into a numerical array
$styles = [
}
// Wrap styles into @media groups as needed and flatten into a numerical array
$styles = [
- 'css' =>
$rl->
makeCombinedStyles( $stylePairs )
+ 'css' =>
ResourceLoader::
makeCombinedStyles( $stylePairs )
];
}
}
];
}
}