using class-var already stored in session

This commit is contained in:
Ralf Becker 2004-12-12 12:25:40 +00:00
parent 708afe238a
commit 5890110f7a

View File

@ -27,7 +27,6 @@ class uiviews extends uical
'day' => True,
'week' => True,
'month' => True,
'test' => True,
);
/**
* @var $debug mixed integer level or string function- or widget-name
@ -334,11 +333,6 @@ class uiviews extends uical
*/
function timeGridWidget($daysEvents,$width,$granularity_m=30,$px_m=1.7,$indent='',$title='')
{
// Get Owner/Participants
$_session_data = $GLOBALS['phpgw']->session->appsession("session_data", "calendar");
$participants = $_session_data["owner"];
unset($_session_data);
if ($this->debug > 1 || $this->debug==='timeGridWidget') $this->bo->debug_message('uiviews::timeGridWidget(events=%1,width=%2,granularity_m=%3,px_m=%4,)',True,$daysEvents,$width,$granularity_m,$px_m);
$this->px_m = $px_m; // for time2pos()
@ -369,7 +363,7 @@ class uiviews extends uical
$add = array(
'menuaction' => 'calendar.uicalendar.add',
'date' => $this->date,
'owner' => $participants,
'owner' => $this->owner,
);
if ($t >= $this->wd_start && $t <= $this->wd_end)
{