mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
Test performance
This commit is contained in:
@@ -99,9 +99,25 @@ class ScheduleController extends Controller
|
||||
}
|
||||
|
||||
foreach ($events as $event) {
|
||||
|
||||
$color = $this->getColor($event->type);
|
||||
|
||||
|
||||
if($event->calendar_color == null)
|
||||
{
|
||||
$color = $this->getColor($event->type);
|
||||
}
|
||||
else
|
||||
{
|
||||
$color = $event->calendar_color;
|
||||
}
|
||||
|
||||
if($event->calendar_icon == null)
|
||||
{
|
||||
$icon = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
$icon = $event->calendar_icon;
|
||||
}
|
||||
|
||||
$myevent = [
|
||||
'title' => $event->name,
|
||||
'start' => date('c',strtotime($event->date_begin)),
|
||||
@@ -109,7 +125,8 @@ class ScheduleController extends Controller
|
||||
'color' => $color,
|
||||
'extraParams' => [
|
||||
'db_type' => 'event'],
|
||||
'id' => $event->id
|
||||
'id' => $event->id,
|
||||
'icon' => $icon
|
||||
];
|
||||
array_push($jsonevents,$myevent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user