From edd9a9fd1a3451f7868400fcf9d2ebe0cf563c51 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Sat, 20 Dec 2008 00:11:55 +0000 Subject: fix rss link and dates --- functions/init/cpaths.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'functions/init') diff --git a/functions/init/cpaths.php b/functions/init/cpaths.php index dd6ae45..c1ab50b 100644 --- a/functions/init/cpaths.php +++ b/functions/init/cpaths.php @@ -1,7 +1,8 @@ default_path == '') { - $phpiCal_config->setProperty('default_path', BASE); + $p = str_replace("/rss","","http://".$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF']) ); + $phpiCal_config->setProperty('default_path', $p); } #cpath modifies the calendar path based on the url or cookie values. This allows you to run multiple calendar subsets from a single phpicalendar installation. Operations on cpath are largely hidden from the end user. -- cgit v1.2.3