aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Events.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-09-23 19:18:05 +0200
committerMario <mario@mariovavti.com>2018-09-23 19:18:05 +0200
commit781fdaafcd6a8086b76409b0a39d8edbca2e04c9 (patch)
treecb9d1e782cb0dfaeab8f0fdcd183c571669dc1a1 /Zotlabs/Module/Events.php
parent1f1d5b9181dd7a9800a2d5c596d8da0f906c53e3 (diff)
downloadvolse-hubzilla-781fdaafcd6a8086b76409b0a39d8edbca2e04c9.tar.gz
volse-hubzilla-781fdaafcd6a8086b76409b0a39d8edbca2e04c9.tar.bz2
volse-hubzilla-781fdaafcd6a8086b76409b0a39d8edbca2e04c9.zip
settings for events and cdav calendar
Diffstat (limited to 'Zotlabs/Module/Events.php')
-rw-r--r--Zotlabs/Module/Events.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Module/Events.php b/Zotlabs/Module/Events.php
index 213fa6bff..b63921ce3 100644
--- a/Zotlabs/Module/Events.php
+++ b/Zotlabs/Module/Events.php
@@ -271,8 +271,10 @@ class Events extends \Zotlabs\Web\Controller {
notice( t('Permission denied.') . EOL);
return;
}
-
+
+ \App::$profile_uid = local_channel();
nav_set_selected('Events');
+
if((argc() > 2) && (argv(1) === 'ignore') && intval(argv(2))) {
$r = q("update event set dismissed = 1 where id = %d and uid = %d",
@@ -288,7 +290,7 @@ class Events extends \Zotlabs\Web\Controller {
);
}
- $first_day = get_pconfig(local_channel(),'system','cal_first_day');
+ $first_day = feature_enabled(local_channel(), 'cal_first_day');
$first_day = (($first_day) ? $first_day : 0);
$htpl = get_markup_template('event_head.tpl');