From 95da5b6f108a0e7fecf83477196ccece8c0db9d4 Mon Sep 17 00:00:00 2001 From: skeeter Date: Fri, 28 Dec 2001 15:53:33 +0000 Subject: [PATCH] A couple of small changes to hide the fact tthat bocalendar is used. --- calendar/inc/class.boalarm.inc.php | 10 ++++++++++ calendar/inc/class.uialarm.inc.php | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.boalarm.inc.php b/calendar/inc/class.boalarm.inc.php index 363272a218..219e4ff96a 100755 --- a/calendar/inc/class.boalarm.inc.php +++ b/calendar/inc/class.boalarm.inc.php @@ -63,5 +63,15 @@ $this->cal->save_sessiondata($data); } + function read_entry($cal_id) + { + return $this->cal->read_entry($cal_id); + } + + function can_user_edit($event) + { + return $this->cal->can_user_edit($event); + } + /* Public functions */ } diff --git a/calendar/inc/class.uialarm.inc.php b/calendar/inc/class.uialarm.inc.php index 9c3969b8ed..e78a899f61 100755 --- a/calendar/inc/class.uialarm.inc.php +++ b/calendar/inc/class.uialarm.inc.php @@ -52,9 +52,9 @@ function prep_page() { - $this->event = $this->bo->cal->read_entry($this->bo->cal_id); + $this->event = $this->bo->read_entry($this->bo->cal_id); - $can_edit = $this->bo->cal->can_user_edit($this->event); + $can_edit = $this->bo->can_user_edit($this->event); if(!$can_edit) {