From: Janusz Dobrowolski Date: Wed, 22 Apr 2009 21:29:21 +0000 (+0000) Subject: Hide empty/disabled tabs. X-Git-Tag: v2.4.2~19^2~1442 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=c436b9e9ca9fcd7523f8c9c23329002434d5e5b8 Hide empty/disabled tabs. --- 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) {