diff options
author | Mario Vavti <mario@mariovavti.com> | 2019-05-09 14:39:40 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2019-05-09 14:39:40 +0200 |
commit | f0c292e77b697bd89a529244cb23e886e5481d40 (patch) | |
tree | a7c9c2764180832741766f4115f542f84f85c5b1 /Zotlabs/Module | |
parent | 9efd484e277578bc27f18baac64c0067852044de (diff) | |
download | volse-hubzilla-f0c292e77b697bd89a529244cb23e886e5481d40.tar.gz volse-hubzilla-f0c292e77b697bd89a529244cb23e886e5481d40.tar.bz2 volse-hubzilla-f0c292e77b697bd89a529244cb23e886e5481d40.zip |
remove the caldav and event app and make calendar the default app
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Cdav.php | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/Zotlabs/Module/Cdav.php b/Zotlabs/Module/Cdav.php index 9e6997c05..aa3321644 100644 --- a/Zotlabs/Module/Cdav.php +++ b/Zotlabs/Module/Cdav.php @@ -133,10 +133,6 @@ class Cdav extends Controller { logger('loggedin'); - if((argv(1) == 'calendars') && (!Apps::system_app_installed(local_channel(), 'CalDAV'))) { - killme(); - } - if((argv(1) == 'addressbooks') && (!Apps::system_app_installed(local_channel(), 'CardDAV'))) { killme(); } @@ -221,10 +217,6 @@ class Cdav extends Controller { if(! local_channel()) return; - if((argv(1) === 'calendar') && (! Apps::system_app_installed(local_channel(), 'CalDAV'))) { - return; - } - if((argv(1) === 'addressbook') && (! Apps::system_app_installed(local_channel(), 'CardDAV'))) { return; } @@ -847,15 +839,6 @@ class Cdav extends Controller { if(!local_channel()) return; - if((argv(1) === 'calendar') && (! Apps::system_app_installed(local_channel(), 'CalDAV'))) { - //Do not display any associated widgets at this point - App::$pdl = ''; - - $o = '<b>' . t('CalDAV App') . ' (' . t('Not Installed') . '):</b><br>'; - $o .= t('CalDAV capable calendar'); - return $o; - } - if((argv(1) === 'addressbook') && (! Apps::system_app_installed(local_channel(), 'CardDAV'))) { //Do not display any associated widgets at this point App::$pdl = ''; @@ -884,7 +867,7 @@ class Cdav extends Controller { } if(argv(1) === 'calendar') { - nav_set_selected('CalDAV'); + nav_set_selected('Calendar'); $caldavBackend = new \Sabre\CalDAV\Backend\PDO($pdo); $calendars = $caldavBackend->getCalendarsForUser($principalUri); } |