Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5534/phpicalendar/functions
Modified Files:
init.inc.php
Log Message:
fix problem with jumps when using webcals but allow_webcals is no...append .ics to filename
Index: init.inc.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init.inc.php,v
retrieving revision 1.100
retrieving revision 1.101
diff -C2 -d -r1.100 -r1.101
*** init.inc.php 3 May 2006 04:29:47 -0000 1.100
--- init.inc.php 14 Aug 2006 06:29:14 -0000 1.101
***************
*** 144,147 ****
--- 144,149 ----
substr($cal_filename, 0, 9) == 'webcal://')
{
+ #jump sends cal url without .ics extension. Add it if needed.
+ if (substr($cal_filename, -4) != ".ics") $cal_filename .= ".ics";
$web_cals[] = $cal_filename;
}
|