r43110 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43109‎ | r43110 | r43111 >
Date:02:09, 3 November 2008
Author:brion
Status:old
Tags:
Comment:
fix for full URL to central loader
Modified paths:
  • /trunk/extensions/CentralNotice/CentralNotice.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/CentralNotice.php
@@ -144,6 +144,7 @@
145145
146146 function efCentralNoticeLoader( $out, $skin ) {
147147 global $wgScript, $wgUser, $wgOut, $wgLang;
 148+ global $wgStyleVersion, $wgJsMimeType;
148149 global $wgNoticeProject;
149150
150151 global $wgNoticeCentralPath;
@@ -176,7 +177,7 @@
177178
178179 // Load the notice text from <head>
179180 $wgOut->addInlineScript( "var wgNotice='';var wgNoticeLocal='';" );
180 - $wgOut->addScriptFile( $encCentralLoader );
 181+ $wgOut->addScript( "<script type=\"{$wgJsMimeType}\" src=\"$encCentralLoader?$wgStyleVersion\"></script>\n" );
181182
182183 return true;
183184 }

Status & tagging log