From ea5a1717de39b4207409086d7d0834f556b1fe21 Mon Sep 17 00:00:00 2001 From: e107steved Date: Mon, 28 Dec 2009 21:49:23 +0000 Subject: [PATCH] Notice removal/bug fixes --- .../calendar_menu/calendar_shortcodes.php | 16 ++++++++-------- e107_plugins/calendar_menu/event.php | 7 ++++--- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/e107_plugins/calendar_menu/calendar_shortcodes.php b/e107_plugins/calendar_menu/calendar_shortcodes.php index 7da745d39..4370d229b 100644 --- a/e107_plugins/calendar_menu/calendar_shortcodes.php +++ b/e107_plugins/calendar_menu/calendar_shortcodes.php @@ -9,8 +9,8 @@ * Shortcodes for event calendar * * $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/calendar_shortcodes.php,v $ - * $Revision: 1.17 $ - * $Date: 2009-12-20 22:47:22 $ + * $Revision: 1.18 $ + * $Date: 2009-12-28 21:49:23 $ * $Author: e107steved $ * */ @@ -20,7 +20,7 @@ * * @package e107_plugins * @subpackage event_calendar - * @version $Id: calendar_shortcodes.php,v 1.17 2009-12-20 22:47:22 e107steved Exp $; + * @version $Id: calendar_shortcodes.php,v 1.18 2009-12-28 21:49:23 e107steved Exp $; */ /* @@ -653,15 +653,15 @@ class event_calendar_shortcodes $show_title = $this->e107->tp->toHTML($this->event['event_title'],FALSE,'TITLE'); // Remove entities in case need to truncate if(isset($this->event['fulltopic']) && !$this->event['fulltopic']) { - $show_title = $this->e107->tp->text_truncate($show_title, 10, "..."); + $show_title = $this->e107->tp->text_truncate($show_title, 10, '...'); } - if($ev['startofevent']) + if($this->event['startofevent']) { - return "".$show_title.""; + return "event['event_id']."'>".$show_title.""; } else { - return "".$show_title.""; + return "event['event_id']."'>".$show_title.""; } } @@ -824,7 +824,7 @@ class event_calendar_shortcodes { global $pref; $event_author_name = strstr(varset($this->event['event_author'],'0.??'),'.'); - if (USERNAME == $event_author_name || $this_ecalClass->cal_super || check_class($pref['eventpost_admin'])) + if (USERNAME == $event_author_name || $this->ecalClass->cal_super || check_class($pref['eventpost_admin'])) { return "".EC_LAN_35 . "  event['event_id']."'>".EC_LAN_36.""; } diff --git a/e107_plugins/calendar_menu/event.php b/e107_plugins/calendar_menu/event.php index 509f30e6b..b0a7b4962 100644 --- a/e107_plugins/calendar_menu/event.php +++ b/e107_plugins/calendar_menu/event.php @@ -9,8 +9,8 @@ * Calender plugin - event listing and event entry * * $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/event.php,v $ - * $Revision: 1.17 $ - * $Date: 2009-12-20 22:47:32 $ + * $Revision: 1.18 $ + * $Date: 2009-12-28 21:49:23 $ * $Author: e107steved $ */ @@ -19,7 +19,7 @@ * * @package e107_plugins * @subpackage event_calendar - * @version $Id: event.php,v 1.17 2009-12-20 22:47:32 e107steved Exp $; + * @version $Id: event.php,v 1.18 2009-12-28 21:49:23 e107steved Exp $; */ require_once('../../class2.php'); @@ -242,6 +242,7 @@ if ($mult_count > 1) // Calculate any action, plus start date/number of events, from query unset($dateArray); +$ds = ''; // Gets set if viewing a single day if (isset($_POST['jump'])) { $dateArray = getdate(mktime(0, 0, 0, $_POST['jumpmonth'], 1, $_POST['jumpyear']));