Index: trunk/extensions/CentralNotice/SpecialBannerController.php |
— | — | @@ -37,7 +37,10 @@ |
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | | - * Generate the body for a static Javascript file |
| 41 | + * Generate the body for the Javascript file |
| 42 | + * |
| 43 | + * We use a jsonp scheme for actual delivery of the banner so that they can be served from meta. |
| 44 | + * In order to circumvent the normal squid cache override we add '/cn.js' to the bannerlist URL. |
42 | 45 | */ |
43 | 46 | function getOutput() { |
44 | 47 | global $wgCentralPagePath; |
— | — | @@ -90,7 +93,7 @@ |
91 | 94 | var groomedBannerList = []; |
92 | 95 | |
93 | 96 | for( var i = 0; i < bannerList.length; i++ ) { |
94 | | - // Only include this banner if it's inteded for the current user |
| 97 | + // Only include this banner if it's intended for the current user |
95 | 98 | if( ( wgUserName && bannerList[i].display_account ) || |
96 | 99 | ( !wgUserName && bannerList[i].display_anon == 1 ) ) |
97 | 100 | { |