aboutsummaryrefslogtreecommitdiffstats
path: root/error.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-11 21:54:52 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-11 21:54:52 +0000
commit9c705dc135dff435c0cb59dec4ebf3d0d1620d2c (patch)
treea75bce0639c690c95e6d338727d75d1b4c2ad107 /error.php
parent1c7998281489f86ca209237b8f45e067fa9a674d (diff)
downloadphpicalendar-9c705dc135dff435c0cb59dec4ebf3d0d1620d2c.tar.gz
phpicalendar-9c705dc135dff435c0cb59dec4ebf3d0d1620d2c.tar.bz2
phpicalendar-9c705dc135dff435c0cb59dec4ebf3d0d1620d2c.zip
update lots of files
Diffstat (limited to 'error.php')
-rw-r--r--error.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/error.php b/error.php
index dbf7026..35e9e19 100644
--- a/error.php
+++ b/error.php
@@ -4,8 +4,8 @@ require_once(BASE.'functions/template.php');
function error($error_msg='There was an error processing the request.', $file='NONE', $error_base='./') {
- global $template, $language, $enable_rss, $lang, $charset, $default_path;
- if (!isset($template)) $template = 'default';
+ global $language, $enable_rss, $lang, $charset, $phpiCal_config;
+ if (!isset($template)) $template = $phpiCal_config->template;
if (!isset($lang['l_powered_by'])) $lang['l_powered_by'] = 'Powered by';
if (!isset($lang['l_error_title'])) $lang['l_error_title'] = 'Error!';
if (!isset($lang['l_error_window'])) $lang['l_error_window'] = 'There was an error!';
@@ -19,7 +19,8 @@ function error($error_msg='There was an error processing the request.', $file='N
$display_date = $lang['l_error_title'];
$calendar_name = $lang['l_error_title'];
- if (empty($default_path)) {
+ $default_path = $phpiCal_config->default_path;
+ if (empty($phpiCal_config->default_path)) {
if (isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) == 'on' ) {
$default_path = 'https://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].substr($_SERVER['PHP_SELF'],0,strpos($_SERVER['PHP_SELF'],'/rss/'));
} else {

© 2014-2024 Faster IT GmbH | imprint | privacy policy