diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2005-11-29 08:35:48 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2005-11-29 08:35:48 +0000 |
commit | 9ac55e3b0c986411f19b9ca3aa99a087e2562b6b (patch) | |
tree | 3fd5ac2493872eff23381bdcd6233f0b5c67c2d7 /functions/calendar_functions.php | |
parent | 2b469d2b56c288f8fc18d004ed85e55832739e6f (diff) | |
download | phpicalendar-9ac55e3b0c986411f19b9ca3aa99a087e2562b6b.tar.gz phpicalendar-9ac55e3b0c986411f19b9ca3aa99a087e2562b6b.tar.bz2 phpicalendar-9ac55e3b0c986411f19b9ca3aa99a087e2562b6b.zip |
init.inc.php - strip . from cpath, change time calc, calendar_functions.php change in getCalendarname to not truncate names not ending in .ics
Diffstat (limited to 'functions/calendar_functions.php')
-rw-r--r-- | functions/calendar_functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 |