From 9ac55e3b0c986411f19b9ca3aa99a087e2562b6b Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Tue, 29 Nov 2005 08:35:48 +0000 Subject: init.inc.php - strip . from cpath, change time calc, calendar_functions.php change in getCalendarname to not truncate names not ending in .ics --- functions/calendar_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions/calendar_functions.php') diff --git a/functions/calendar_functions.php b/functions/calendar_functions.php index a587d2c..5774b04 100644 --- a/functions/calendar_functions.php +++ b/functions/calendar_functions.php @@ -196,7 +196,7 @@ function getCalendarName($cal_path) { } // At this point, just pull the name off the file. - return substr(basename($cal_path), 0, -4); + return basename($cal_path,".ics"); } // This function prints out the calendars available to the user, for -- cgit v1.2.3