Author: ralfbecker
New Revision: 56034
URL: http://svn.stylite.de/viewvc/egroupware?rev=56034&view=rev
Log:
fix PHP Fatal because for removed datetime from calendar_ui
Modified:
trunk/calendar/sitemgr/class.module_calendar_list.inc.php
trunk/calendar/sitemgr/class.module_calendar_month.inc.php
trunk/calendar/sitemgr/class.module_calendar_planner.inc.php
— trunk/calendar/sitemgr/class.module_calendar_list.inc.php (original)
+++ trunk/calendar/sitemgr/class.module_calendar_list.inc.php Thu May 5 13:38:28 2016
@@ -254,20 +254,19 @@
if (($arguments['acceptDateParam']) && (get_var('date',array('POST','GET'))))
{
— trunk/calendar/sitemgr/class.module_calendar_month.inc.php (original)
+++ trunk/calendar/sitemgr/class.module_calendar_month.inc.php Thu May 5 13:38:28 2016
@@ -239,10 +239,9 @@
$start = (int) ($this->bo->now_su +
(60 * 60 * 24 * 7 * $dateOffset));
}
-
$start = new Api\DateTime($start);
-
$start->setWeekstart();
-
$first = $start->format('ts');
$last = strtotime("+$weeks weeks",$first) - 1;
if ($arguments['showTitle'])
— trunk/calendar/sitemgr/class.module_calendar_planner.inc.php (original)
+++ trunk/calendar/sitemgr/class.module_calendar_planner.inc.php Thu May 5 13:38:28 2016
@@ -198,7 +198,7 @@
}
$this->arguments[‘resources’][‘options’] = array_unique($this->arguments[‘resources’][‘options’]);
$this->arguments[‘resources’][‘multiple’] = count($this->arguments[‘resources’][‘options’]) ? 4 : 0;
return parent::get_user_interface();
}
@@ -281,7 +281,9 @@
}
elseif ($ui->planner_view == ‘week’ || $ui->planner_view == ‘weekN’) // weeekview
{
-
$start = new Api\DateTime($ui->date);
-
$start->setWeekstart();
-
$ui->first = $start->format('ts');
$ui->last = $ui->bo->date2array($this->first);
$ui->last['day'] += ($ui->planner_view == 'week' ? 7 : 7 * $ui->cal_prefs['multiple_weeks'])-1;
$ui->last['hour'] = 23; $ui->last['minute'] = $ui->last['sec'] = 59;
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs