diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-20 00:11:55 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-20 00:11:55 +0000 |
commit | edd9a9fd1a3451f7868400fcf9d2ebe0cf563c51 (patch) | |
tree | 18b9a217dcc678e2ae4600d25b55fc467a8a2c97 /functions/init | |
parent | 8ad2eb254717b68f4413da74e75639d48e648fab (diff) | |
download | phpicalendar-edd9a9fd1a3451f7868400fcf9d2ebe0cf563c51.tar.gz phpicalendar-edd9a9fd1a3451f7868400fcf9d2ebe0cf563c51.tar.bz2 phpicalendar-edd9a9fd1a3451f7868400fcf9d2ebe0cf563c51.zip |
fix rss link and dates
Diffstat (limited to 'functions/init')
-rw-r--r-- | functions/init/cpaths.php | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ <?php # adjust paths in case they are incorrect if ($phpiCal_config->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. |