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 | |
parent | 8ad2eb254717b68f4413da74e75639d48e648fab (diff) | |
download | phpicalendar-edd9a9fd1a3451f7868400fcf9d2ebe0cf563c51.tar.gz phpicalendar-edd9a9fd1a3451f7868400fcf9d2ebe0cf563c51.tar.bz2 phpicalendar-edd9a9fd1a3451f7868400fcf9d2ebe0cf563c51.zip |
fix rss link and dates
Diffstat (limited to 'functions')
-rw-r--r-- | functions/ical_parser.php | 5 | ||||
-rw-r--r-- | functions/init/cpaths.php | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php index ce1f6b6..c52594d 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -463,7 +463,8 @@ $cal_displayname = urldecode(implode(', ', $cal_displaynames)); #reset this with $template_started = getmicrotime(); //If you want to see the values in the arrays, uncomment below. -//print '<pre>'; +#print '<pre>'; +#var_dump($phpiCal_config); //print_r($master_array); //print_r($overlap_array); //print_r($day_array); @@ -473,5 +474,5 @@ $template_started = getmicrotime(); //print_r($cal_displaynames); //print_r($cal_filelist); //print_r($tz_array); -//print '</pre>'; +#print '</pre>'; ?>
\ No newline at end of file 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. |