Enable CalendarExport widget on /events
This commit is contained in:
parent
c5cd569447
commit
a7c48f40b7
|
@ -25,21 +25,21 @@ function events_init(App $a) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($a->argc > 1) {
|
|
||||||
// If it's a json request abort here because we don't
|
// If it's a json request abort here because we don't
|
||||||
// need the widget data
|
// need the widget data
|
||||||
if ($a->argv[1] === 'json') {
|
if ($a->argc > 1 && $a->argv[1] === 'json') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$cal_widget = CalendarExport::getHTML();
|
if (empty($a->page['aside'])) {
|
||||||
|
|
||||||
if (! x($a->page,'aside')) {
|
|
||||||
$a->page['aside'] = '';
|
$a->page['aside'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$a->data['user'] = $_SESSION['user'];
|
||||||
|
|
||||||
|
$cal_widget = CalendarExport::getHTML();
|
||||||
|
|
||||||
$a->page['aside'] .= $cal_widget;
|
$a->page['aside'] .= $cal_widget;
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue