. * */ namespace OCA\Tasks\AppInfo; if(\OCP\App::isEnabled('calendar')) { \OC::$server->getNavigationManager()->add(array( // the string under which your app will be referenced in owncloud 'id' => 'tasks', 'order' => 100, 'href' => \OC::$server->getURLGenerator()->linkToRoute('tasks.page.index'), 'icon' => \OC::$server->getURLGenerator()->imagePath('tasks', 'tasks.svg'), 'name' => \OC_L10N::get('tasks')->t('Tasks') )); } else { $msg = 'Can not enable the Tasks app because the Calendar App is disabled.'; \OCP\Util::writeLog('tasks', $msg, \OCP\Util::ERROR); }