Index: trunk/extensions/CentralNotice/CentralNotice.php |
— | — | @@ -144,6 +144,7 @@ |
145 | 145 | |
146 | 146 | function efCentralNoticeLoader( $out, $skin ) { |
147 | 147 | global $wgScript, $wgUser, $wgOut, $wgLang; |
| 148 | + global $wgStyleVersion, $wgJsMimeType; |
148 | 149 | global $wgNoticeProject; |
149 | 150 | |
150 | 151 | global $wgNoticeCentralPath; |
— | — | @@ -176,7 +177,7 @@ |
177 | 178 | |
178 | 179 | // Load the notice text from <head> |
179 | 180 | $wgOut->addInlineScript( "var wgNotice='';var wgNoticeLocal='';" ); |
180 | | - $wgOut->addScriptFile( $encCentralLoader ); |
| 181 | + $wgOut->addScript( "<script type=\"{$wgJsMimeType}\" src=\"$encCentralLoader?$wgStyleVersion\"></script>\n" ); |
181 | 182 | |
182 | 183 | return true; |
183 | 184 | } |