http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73219
Revision: 73219
Author: kaldari
Date: 2010-09-17 17:00:44 +0000 (Fri, 17 Sep 2010)
Log Message:
-----------
allow banner forcing for testing
Modified Paths:
--------------
trunk/extensions/CentralNotice/SpecialBannerController.php
Modified: trunk/extensions/CentralNotice/SpecialBannerController.php
===================================================================
--- trunk/extensions/CentralNotice/SpecialBannerController.php 2010-09-17
16:55:52 UTC (rev 73218)
+++ trunk/extensions/CentralNotice/SpecialBannerController.php 2010-09-17
17:00:44 UTC (rev 73219)
@@ -124,8 +124,13 @@
$( document ).ready( function () {
// Initialize the query string vars
$.centralNotice.fn.getQueryStringVariables();
- // Look for banners ready to go NOW
- $.centralNotice.fn.loadBannerList( );
+ if( $.centralNotice.data.getVars['cnbanner'] ) {
+ // if we're forcing one banner
+ $.centralNotice.fn.loadBanner(
$.centralNotice.data.getVars['cnbanner'] );
+ } else {
+ // Look for banners ready to go NOW
+ $.centralNotice.fn.loadBannerList( );
+ }
} ); //document ready
} )( jQuery );
EOT;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs