Index: trunk/extensions/CentralNotice/CentralNotice.php |
— | — | @@ -142,9 +142,10 @@ |
143 | 143 | } |
144 | 144 | |
145 | 145 | function efCentralNoticeLoader( $out, $skin ) { |
146 | | - global $wgUser, $wgOut, $wgCentralDBname; |
| 146 | + global $wgUser, $wgOut, $wgCentralDBname, $wgScript; |
147 | 147 | |
148 | | - $centralLoader = SpecialPage::getTitleFor( 'BannerController' )->getLocalUrl(); |
| 148 | + // Include '.js' to exempt script from squid cache override |
| 149 | + $centralLoader = $wgScript . '?title=' . SpecialPage::getTitleFor( 'BannerController' ) . '&cn.js'; |
149 | 150 | |
150 | 151 | // Insert the banner controller Javascript into the <head> |
151 | 152 | $wgOut->addScriptFile( $centralLoader ); |