From: <ji...@us...> - 2008-12-12 00:08:53
|
Update of /cvsroot/phpicalendar/phpicalendar/functions/init In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv13781/functions/init Modified Files: cpaths.php Log Message: fix calendar path bug in initialization Index: cpaths.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init/cpaths.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** cpaths.php 11 Dec 2008 23:48:39 -0000 1.1 --- cpaths.php 12 Dec 2008 00:08:47 -0000 1.2 *************** *** 1,7 **** <?php #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. if ($phpiCal_config->calendar_path == '') { ! $calendar_path = BASE.'calendars'; ! }else $calendar_path = $phpiCal_config->calendar_path; $cpath = ''; #initialize cpath to prevent later undef warnings. if(isset($_REQUEST['cpath'])&& $_REQUEST['cpath'] !=''){ --- 1,13 ---- <?php + # adjust paths in case they are incorrect + if ($phpiCal_config->default_path == '') { + $phpiCal_config->setProperty('default_path', BASE); + } + #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. if ($phpiCal_config->calendar_path == '') { ! $phpiCal_config->setProperty('calendar_path', BASE.'calendars'); ! } ! $calendar_path = $phpiCal_config->calendar_path; $cpath = ''; #initialize cpath to prevent later undef warnings. if(isset($_REQUEST['cpath'])&& $_REQUEST['cpath'] !=''){ |