X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=frontaccounting.php;h=033c99283758f9f537cb096323221779ad7b69f2;hb=c31829537f02787dd94654820dd74168c054b8c4;hp=7e2201882a74b9f954ca64cfa97c8f69c5df83c4;hpb=f77944f5e2122d5b6e57d5e2718b4760519ec5d2;p=fa-stable.git diff --git a/frontaccounting.php b/frontaccounting.php index 7e220188..033c9928 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) { @@ -90,11 +91,11 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_ { foreach ($installed_extensions as $ext) { - get_text::add_domain($_SESSION['language']->code, + $_SESSION['get_text']->add_domain($_SESSION['language']->code, $ext['folder']."/lang"); $class = $ext['name']."_app"; $this->add_application(new $class()); - get_text::add_domain($_SESSION['language']->code, + $_SESSION['get_text']->add_domain($_SESSION['language']->code, $path_to_root."/lang"); } }