From c436b9e9ca9fcd7523f8c9c23329002434d5e5b8 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Wed, 22 Apr 2009 21:29:21 +0000 Subject: [PATCH 1/1] Hide empty/disabled tabs. --- applications/application.php | 2 +- frontaccounting.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/applications/application.php b/applications/application.php index a7c47964..2b76e2ce 100644 --- a/applications/application.php +++ b/applications/application.php @@ -100,7 +100,7 @@ { $this->id = $id; $this->name = $name; - $this->enables = $enabled; + $this->enabled = $enabled; $this->modules = array(); } diff --git a/frontaccounting.php b/frontaccounting.php index 7e220188..ffd9c7f5 100644 --- a/frontaccounting.php +++ b/frontaccounting.php @@ -44,8 +44,9 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_ //$this->renderer =& new renderer(); } function add_application(&$app) - { - $this->applications[$app->id] = &$app; + { + if ($app->enabled) // skip inactive modules + $this->applications[$app->id] = &$app; } function get_application($id) { -- 2.30.2