r56726 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56725‎ | r56726 | r56727 >
Date:18:30, 21 September 2009
Author:ialex
Status:deferred
Tags:
Comment:
Use $wgOut->addExtensionStyle() rather than $wgOut->addLink()
Modified paths:
  • /trunk/extensions/Translate/TranslateUtils.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateUtils.php
@@ -248,9 +248,7 @@
249249
250250 global $wgHooks, $wgOut, $wgTranslateCssLocation;
251251 if ( $wgTranslateCssLocation ) {
252 - $wgOut->addLink( array( 'rel' => 'stylesheet', 'type' => 'text/css',
253 - 'href' => "$wgTranslateCssLocation/Translate.css", )
254 - );
 252+ $wgOut->addExtensionStyle( "$wgTranslateCssLocation/Translate.css" );
255253 } else {
256254 $wgHooks['SkinTemplateSetupPageCss'][] = array( __CLASS__ , 'injectCSSCB' );
257255 }

Status & tagging log