Index: trunk/extensions/CentralNotice/CentralNotice.php |
— | — | @@ -133,9 +133,11 @@ |
134 | 134 | } |
135 | 135 | |
136 | 136 | 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. |
139 | 140 | $vars['wgNotice'] = ''; |
| 141 | + $vars['wgNoticeProject'] = $wgNoticeProject; |
140 | 142 | return true; |
141 | 143 | } |
142 | 144 | |