2013-12-17, 05:03:29
Hi,
i have the following error inside my logfile:
PHP Parse error: syntax error, unexpected '}' in /var/www/web0/html/dev/plugins/bookingcalendar.php on line 53
Here the code of line 53: see the arrow -->
$xml = simplexml_load_file($file);
$lang = $xml->lang;
i18n_merge('bookingcalendar', $lang) || i18n_merge('bookingcalendar', 'en_US');
$LANG = $lang;
unset($xml, $file, $lang);
# hooks, filters
add_action('pages-sidebar', 'createSideMenu', array($thisfile, i18n_r('bookingcalendar/bookingcalendar')));
# file check
if(!is_dir(GSDATAOTHERPATH.'/bookingcalendar')) {
mkdir(GSDATAOTHERPATH.'/bookingcalendar');
}
#$_GET check
#if(!isset($_GET['bookingcalendar']) and !isset($_GET['settings']) and !isset($_GET['edit'])) $_GET['events'] = True;
# admin
include 'bookingcalendar/inc/bookingcalendar.php';
function c_admin() {
include 'bookingcalendar/admin.php';
---> }
what´s wrong ?
i have the following error inside my logfile:
PHP Parse error: syntax error, unexpected '}' in /var/www/web0/html/dev/plugins/bookingcalendar.php on line 53
Here the code of line 53: see the arrow -->
$xml = simplexml_load_file($file);
$lang = $xml->lang;
i18n_merge('bookingcalendar', $lang) || i18n_merge('bookingcalendar', 'en_US');
$LANG = $lang;
unset($xml, $file, $lang);
# hooks, filters
add_action('pages-sidebar', 'createSideMenu', array($thisfile, i18n_r('bookingcalendar/bookingcalendar')));
# file check
if(!is_dir(GSDATAOTHERPATH.'/bookingcalendar')) {
mkdir(GSDATAOTHERPATH.'/bookingcalendar');
}
#$_GET check
#if(!isset($_GET['bookingcalendar']) and !isset($_GET['settings']) and !isset($_GET['edit'])) $_GET['events'] = True;
# admin
include 'bookingcalendar/inc/bookingcalendar.php';
function c_admin() {
include 'bookingcalendar/admin.php';
---> }
what´s wrong ?