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 "objectcache: Optimise array_map in MemcachedBagOStuff::makeKey()"
[lhc/web/wiklou.git]
/
includes
/
content
/
CssContent.php
diff --git
a/includes/content/CssContent.php
b/includes/content/CssContent.php
index
d32fa88
..
87c5ff2
100644
(file)
--- a/
includes/content/CssContent.php
+++ b/
includes/content/CssContent.php
@@
-25,6
+25,8
@@
* @author Daniel Kinzler
*/
* @author Daniel Kinzler
*/
+use MediaWiki\MediaWikiServices;
+
/**
* Content object for CSS pages.
*
/**
* Content object for CSS pages.
*
@@
-58,11
+60,11
@@
class CssContent extends TextContent {
* @see TextContent::preSaveTransform
*/
public function preSaveTransform( Title $title, User $user, ParserOptions $popts ) {
* @see TextContent::preSaveTransform
*/
public function preSaveTransform( Title $title, User $user, ParserOptions $popts ) {
- global $wgParser;
// @todo Make pre-save transformation optional for script pages
$text = $this->getText();
// @todo Make pre-save transformation optional for script pages
$text = $this->getText();
- $pst = $wgParser->preSaveTransform( $text, $title, $user, $popts );
+ $pst = MediaWikiServices::getInstance()->getParser()
+ ->preSaveTransform( $text, $title, $user, $popts );
return new static( $pst );
}
return new static( $pst );
}