http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73234

Revision: 73234
Author:   kaldari
Date:     2010-09-17 18:21:00 +0000 (Fri, 17 Sep 2010)

Log Message:
-----------
switching to simpler (and easier to remember) param name since we don't deal 
with other types of banners in the query string

Modified Paths:
--------------
    trunk/extensions/CentralNotice/SpecialBannerController.php

Modified: trunk/extensions/CentralNotice/SpecialBannerController.php
===================================================================
--- trunk/extensions/CentralNotice/SpecialBannerController.php  2010-09-17 
18:17:09 UTC (rev 73233)
+++ trunk/extensions/CentralNotice/SpecialBannerController.php  2010-09-17 
18:21:00 UTC (rev 73234)
@@ -128,9 +128,9 @@
        $( document ).ready( function () {
                // Initialize the query string vars
                $.centralNotice.fn.getQueryStringVariables();
-               if( $.centralNotice.data.getVars['cnbanner'] ) {
+               if( $.centralNotice.data.getVars['banner'] ) {
                        // if we're forcing one banner
-                       $.centralNotice.fn.loadBanner( 
$.centralNotice.data.getVars['cnbanner'] );
+                       $.centralNotice.fn.loadBanner( 
$.centralNotice.data.getVars['banner'] );
                } else {
                        // Look for banners ready to go NOW
                        $.centralNotice.fn.loadBannerList( 
$.centralNotice.data.getVars['country'] );



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to