diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-05-20 20:47:58 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-05-20 20:47:58 +0000 |
commit | b8c2abf383a29480762d0a74cc11633ff6116f23 (patch) | |
tree | b8c92d7f96a991e84511eb425bfa1a5aa0b095c9 /functions | |
parent | 7b65bca64cbff4eb2c3e2fdce084aa48f3673edd (diff) | |
download | phpicalendar-b8c2abf383a29480762d0a74cc11633ff6116f23.tar.gz phpicalendar-b8c2abf383a29480762d0a74cc11633ff6116f23.tar.bz2 phpicalendar-b8c2abf383a29480762d0a74cc11633ff6116f23.zip |
Minor error fixes.
Diffstat (limited to 'functions')
-rw-r--r-- | functions/error.php | 8 | ||||
-rw-r--r-- | functions/ical_parser.php | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/functions/error.php b/functions/error.php index 81c2013..e69c020 100644 --- a/functions/error.php +++ b/functions/error.php @@ -26,6 +26,7 @@ function error($error_msg='There was an error processing the request.', $file='N 'header' => BASE.'templates/'.$template.'/header.tpl', 'footer' => BASE.'templates/'.$template.'/footer.tpl', 'calendar_nav' => BASE.'templates/'.$template.'/calendar_nav.tpl', + 'default_path' => '', 'template' => $template, 'cal' => $cal, 'getdate' => $getdate, @@ -33,11 +34,16 @@ function error($error_msg='There was an error processing the request.', $file='N 'display_date' => $display_date, 'rss_powered' => $rss_powered, 'rss_available' => '', + 'event_js' => '', + 'todo_js' => '', 'todo_available' => '', 'rss_valid' => '', 'error_msg' => $error_msg, 'error_calendar' => $error_calendar, - 'generated' => $generated + 'generated' => $generated, + 'l_powered_by' => $lang['l_powered_by'], + 'l_error_back' => $lang['l_error_back'], + 'l_error_window' => $lang['l_error_window'] )); diff --git a/functions/ical_parser.php b/functions/ical_parser.php index e6301a5..7224ee1 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -66,7 +66,7 @@ foreach ($cal_filelist as $filename) { if ($parse_file) { - $ifile = fopen($filename, "r"); + $ifile = @fopen($filename, "r"); if ($ifile == FALSE) exit(error($error_invalidcal_lang, $filename)); $nextline = fgets($ifile, 1024); if (trim($nextline) != 'BEGIN:VCALENDAR') exit(error($error_invalidcal_lang, $filename)); |