Index: trunk/extensions/CentralNotice/SpecialBannerController.php |
— | — | @@ -63,14 +63,13 @@ |
64 | 64 | $( '#siteNotice' ).prepend( '<div id="centralNotice" class="' + ( wgNoticeToggleState ? 'expanded' : 'collapsed' ) + '">'+bannerScript+'</div>' ); |
65 | 65 | }, |
66 | 66 | 'loadBannerList': function( geoOverride ) { |
67 | | - var bannerListURL; |
68 | 67 | if ( geoOverride ) { |
69 | 68 | var geoLocation = geoOverride; // override the geo info |
70 | 69 | } else { |
71 | 70 | var geoLocation = Geo.country; // pull the geo info |
72 | 71 | } |
73 | 72 | var bannerListQuery = $.param( { 'title': wgFormattedNamespaces[-1] + ':BannerListLoader', 'language': wgContentLanguage, 'project': wgNoticeProject, 'country': geoLocation, 'cache': 'cn.js' } ); |
74 | | - bannerListURL = wgScript + '?' + bannerListQuery; |
| 73 | + var bannerListURL = wgScript + '?' + bannerListQuery; |
75 | 74 | var request = $.ajax( { |
76 | 75 | url: bannerListURL, |
77 | 76 | dataType: 'json', |