aboutsummaryrefslogtreecommitdiffstats
path: root/functions/calendar_functions.php
diff options
context:
space:
mode:
authorWesley Miaw <josuah@users.sourceforge.net>2005-12-15 03:26:31 +0000
committerWesley Miaw <josuah@users.sourceforge.net>2005-12-15 03:26:31 +0000
commit99509f3f2327133a94e2f279ca6350a5213d2192 (patch)
tree5b5bbf0817a388dea34d1324be5a3d41b6479b27 /functions/calendar_functions.php
parentc4d545cc025c75e30a2208d7cf2140ab9032d6b9 (diff)
downloadphpicalendar-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.php2
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

© 2014-2024 Faster IT GmbH | imprint | privacy policy