Index: trunk/extensions/CentralNotice/CentralNotice.php |
— | — | @@ -246,9 +246,7 @@ |
247 | 247 | global $wgNoticeProject; |
248 | 248 | // Initialize global Javascript variables. We initialize Geo with empty values so if the geo |
249 | 249 | // IP lookup fails we don't have any surprises. |
250 | | - $geo = (object)array(); |
251 | | - $geo->{'city'} = ''; |
252 | | - $geo->{'country'} = ''; |
| 250 | + $geo = array( 'city' => '', 'country' => '' ); |
253 | 251 | $vars['Geo'] = $geo; // change this to wgGeo as soon as Mark updates on his end |
254 | 252 | $vars['wgNoticeProject'] = $wgNoticeProject; |
255 | 253 | return true; |