X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fresourceloader%2FResourceLoaderEditToolbarModule.php;h=2a6af71502fd8c682d48d38d2f8e8a274e0063db;hb=ceb5ba97db26867bc30eae409997d0330a987ecd;hp=ef51e0cbd3058795b2d58131270046387a251c55;hpb=412d9dd59cc66a5320a9417ff0897dacaf228ab1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/resourceloader/ResourceLoaderEditToolbarModule.php b/includes/resourceloader/ResourceLoaderEditToolbarModule.php index ef51e0cbd3..2a6af71502 100644 --- a/includes/resourceloader/ResourceLoaderEditToolbarModule.php +++ b/includes/resourceloader/ResourceLoaderEditToolbarModule.php @@ -1,6 +1,6 @@ getLanguage() ); - - // This is very conveniently formatted and we can pass it right through - $vars = $language->getImageFiles(); - - // less.php tries to be helpful and parse our variables as LESS source code - foreach ( $vars as $key => &$value ) { - $value = CSSMin::serializeStringValue( $value ); + foreach ( $language->getImageFiles() as $key => $value ) { + $vars[$key] = CSSMin::serializeStringValue( $value ); } - return $vars; } - - /** - * @return bool - */ - public function enableModuleContentVersion() { - return true; - } - - /** - * Get a LESS compiler instance for this module. - * - * Set our variables in it. - * - * @throws MWException - * @param ResourceLoaderContext $context - * @return Less_Parser - */ - protected function getLessCompiler( ResourceLoaderContext $context = null ) { - $parser = parent::getLessCompiler(); - $parser->ModifyVars( $this->getLessVars( $context ) ); - return $parser; - } }