diff options
author | Wesley Miaw <josuah@users.sourceforge.net> | 2005-12-15 03:26:31 +0000 |
---|---|---|
committer | Wesley Miaw <josuah@users.sourceforge.net> | 2005-12-15 03:26:31 +0000 |
commit | 99509f3f2327133a94e2f279ca6350a5213d2192 (patch) | |
tree | 5b5bbf0817a388dea34d1324be5a3d41b6479b27 /functions/calendar_functions.php | |
parent | c4d545cc025c75e30a2208d7cf2140ab9032d6b9 (diff) | |
download | phpicalendar-99509f3f2327133a94e2f279ca6350a5213d2192.tar.gz phpicalendar-99509f3f2327133a94e2f279ca6350a5213d2192.tar.bz2 phpicalendar-99509f3f2327133a94e2f279ca6350a5213d2192.zip |
Fixed getCalendarName() return value so it removes .ics and not the last
four characters arbitrarily. Fixed the list_jumps() method so it only
passes in one calendar at a time to getCalendarName.
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 3f40116..565f801 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 |