Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7287/phpicalendar/functions
Modified Files:
init.inc.php
Log Message:
set the default calendar_path before appending cpath
Index: init.inc.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init.inc.php,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -d -r1.80 -r1.81
*** init.inc.php 29 Nov 2005 08:39:20 -0000 1.80
--- init.inc.php 2 Dec 2005 17:24:01 -0000 1.81
***************
*** 28,31 ****
--- 28,35 ----
}
#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 ($calendar_path == '') {
+ $calendar_path = BASE.'calendars';
+ }
+
if($_REQUEST['cpath']){
$cpath = str_replace('..','',$_REQUEST['cpath']);
***************
*** 85,92 ****
- if ($calendar_path == '') {
- $calendar_path = BASE.'calendars';
- }
-
// Pull the calendars off the GET line if provided. The $cal_filename
// is always an array, because this makes it easier to deal with below.
--- 89,92 ----
|