aboutsummaryrefslogtreecommitdiffstats
path: root/functions/date_functions.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2005-09-07 06:08:02 +0000
committerJim Hu <jimhu@users.sourceforge.net>2005-09-07 06:08:02 +0000
commit6eabeaeb9ff95f4f227c66e5293c0afdf0ac0ca4 (patch)
tree56ac1f5ec08712c6636c8a58f76ddba5e8447dd1 /functions/date_functions.php
parent5c46da23340dd0b15510f982d1ded7b4c8ef1aab (diff)
downloadphpicalendar-6eabeaeb9ff95f4f227c66e5293c0afdf0ac0ca4.tar.gz
phpicalendar-6eabeaeb9ff95f4f227c66e5293c0afdf0ac0ca4.tar.bz2
phpicalendar-6eabeaeb9ff95f4f227c66e5293c0afdf0ac0ca4.zip
adjust date_functions.php, event.js, header.tpl to allow event popups to work with cpath multiple calendar directories
Diffstat (limited to 'functions/date_functions.php')
-rw-r--r--functions/date_functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/date_functions.php b/functions/date_functions.php
index 6c524db..2b83c79 100644
--- a/functions/date_functions.php
+++ b/functions/date_functions.php
@@ -163,7 +163,7 @@ function chooseOffset($time) {
}
function openevent($event_date, $uid, $arr, $lines = 0, $length = 0, $link_class = '', $pre_text = '', $post_text = '') {
-
+ global $cpath;
$event_text = stripslashes(urldecode($arr["event_text"]));
if (empty($start)) {
$title = $event_text;
@@ -193,7 +193,7 @@ function openevent($event_date, $uid, $arr, $lines = 0, $length = 0, $link_class
static $popup_data_index = 0;
$return = "
<script language=\"Javascript\" type=\"text/javascript\"><!--
- var eventData = new EventData('$escaped_date', '$escaped_time', '$escaped_uid');
+ var eventData = new EventData('$escaped_date', '$escaped_time', '$escaped_uid','$cpath');
document.popup_data[$popup_data_index] = eventData;
// --></script>";

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