Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit ae26720d authored by Pierre-Alain Bandinelli's avatar Pierre-Alain Bandinelli Committed by GitHub
Browse files

Merge pull request #37 from MorrisJobke/use-non-deprecated-call

Use non-deprecated call to add navigation entry
parents 86c0d5e2 fba71346
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ OCP\Util::connectHook('OC_User', 'logout', 'OC_RainLoop_Helper', 'logout');

OCP\Util::addScript('rainloop', 'rainloop');

OCP\App::addNavigationEntry(array(
\OC::$server->getNavigationManager()->add(array(
	'id' => 'rainloop_index',
	'order' => 10,
	'href' => OCP\Util::linkToRoute('rainloop_index'),
+1 −2
Original line number Diff line number Diff line
@@ -9,8 +9,7 @@
 */

OCP\User::checkLoggedIn();
OCP\App::checkAppEnabled('rainloop');
OCP\App::setActiveNavigationEntry('rainloop_index');
\OC::$server->getNavigationManager()->setActiveEntry('rainloop_index');

// Load the empty file ../css/style.css, that's needed to allow theming of
// the Nextcloud header and navigation if rainloop is the active app.
+0 −1
Original line number Diff line number Diff line
@@ -10,7 +10,6 @@
 */

OCP\User::checkLoggedIn();
OCP\App::checkAppEnabled('rainloop');

OCP\Util::addScript('rainloop', 'personal');