r72740 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72739‎ | r72740 | r72741 >
Date:19:57, 10 September 2010
Author:kaldari
Status:ok
Tags:
Comment:
global wgNoticeProject javascript var for banner controller
Modified paths:
  • /trunk/extensions/CentralNotice/CentralNotice.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/CentralNotice.php
@@ -133,9 +133,11 @@
134134 }
135135
136136 function efCentralNoticeDefaults( &$vars ) {
137 - // Initialize these variables to empty, so if the notice script fails
138 - // we don't have any surprises.
 137+ global $wgNoticeProject;
 138+ // Initialize global Javascript variables. We initialize wgNotice to empty so if the notice
 139+ // script fails we don't have any surprises.
139140 $vars['wgNotice'] = '';
 141+ $vars['wgNoticeProject'] = $wgNoticeProject;
140142 return true;
141143 }
142144

Status & tagging log