http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72740
Revision: 72740
Author: kaldari
Date: 2010-09-10 19:57:11 +0000 (Fri, 10 Sep 2010)
Log Message:
-----------
global wgNoticeProject javascript var for banner controller
Modified Paths:
--------------
trunk/extensions/CentralNotice/CentralNotice.php
Modified: trunk/extensions/CentralNotice/CentralNotice.php
===================================================================
--- trunk/extensions/CentralNotice/CentralNotice.php 2010-09-10 19:14:14 UTC
(rev 72739)
+++ trunk/extensions/CentralNotice/CentralNotice.php 2010-09-10 19:57:11 UTC
(rev 72740)
@@ -133,9 +133,11 @@
}
function efCentralNoticeDefaults( &$vars ) {
- // Initialize these variables to empty, so if the notice script fails
- // we don't have any surprises.
+ global $wgNoticeProject;
+ // Initialize global Javascript variables. We initialize wgNotice to
empty so if the notice
+ // script fails we don't have any surprises.
$vars['wgNotice'] = '';
+ $vars['wgNoticeProject'] = $wgNoticeProject;
return true;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs