summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-17 20:21:12 -0500
committerFrederic Guillot <fred@kanboard.net>2015-12-17 20:21:12 -0500
commitd0af39170c2c53cf7aa5178a0563bd0d2c667d46 (patch)
tree0d9ed2639f7acaa853988caab6e8ca00e1178b8d /app
parent47f518f3b4d975ad51e437d0269227ee938f274f (diff)
parenta4a1cd9f0cfe6679540dad538703648be19f48b1 (diff)
Merge pull-request #1572
Diffstat (limited to 'app')
-rw-r--r--app/Template/project/sidebar.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Template/project/sidebar.php b/app/Template/project/sidebar.php
index 2cc5ff2f..92794038 100644
--- a/app/Template/project/sidebar.php
+++ b/app/Template/project/sidebar.php
@@ -33,7 +33,7 @@
<?= $this->url->link(t('Categories'), 'category', 'index', array('project_id' => $project['id'])) ?>
</li>
<?php if ($project['is_private'] == 0): ?>
- <li <?= $this->app->getRouterController() === 'project' && $this->app->getRouterAction() === 'permissions' ? 'class="active"' : '' ?>>
+ <li <?= $this->app->getRouterController() === 'ProjectPermission' ? 'class="active"' : '' ?>>
<?= $this->url->link(t('Permissions'), 'ProjectPermission', 'index', array('project_id' => $project['id'])) ?>
</li>
<?php endif ?>
@@ -60,7 +60,7 @@
<?php endif ?>
<?php endif ?>
- <?= $this->hook->render('template:project:sidebar') ?>
+ <?= $this->hook->render('template:project:sidebar', array('project' => $project)) ?>
</ul>
<div class="sidebar-collapse"><a href="#" title="<?= t('Hide sidebar') ?>"><i class="fa fa-chevron-left"></i></a></div>
<div class="sidebar-expand" style="display: none"><a href="#" title="<?= t('Expand sidebar') ?>"><i class="fa fa-chevron-right"></i></a></div>