X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=frontaccounting.php;h=267780b191b40593fbf4880aea4d5c480ccf5415;hb=498f13d19b716779a3b986ff399121fb2ac9a53a;hp=ffd9c7f56f27ccb6cbcbeb07a6bce3867c5f55f9;hpb=c436b9e9ca9fcd7523f8c9c23329002434d5e5b8;p=fa-stable.git diff --git a/frontaccounting.php b/frontaccounting.php index ffd9c7f5..267780b1 100644 --- a/frontaccounting.php +++ b/frontaccounting.php @@ -24,12 +24,11 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_ { foreach ($installed_extensions as $ext) { - include_once($path_to_root."/".$ext['folder']."/".$ext['app_file']); + if ($ext['type'] == 'module') + @include_once($path_to_root."/".$ext['path']."/".$ext['filename']); } } - include_once($path_to_root . '/modules/installed_modules.php'); - class front_accounting { var $user; @@ -91,12 +90,15 @@ 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, - $ext['folder']."/lang"); - $class = $ext['name']."_app"; - $this->add_application(new $class()); - get_text::add_domain($_SESSION['language']->code, - $path_to_root."/lang"); + if (@($ext['active'] && $ext['type'] == 'module')) { // supressed warnings before 2.2 upgrade + $_SESSION['get_text']->add_domain($_SESSION['language']->code, + $ext['path']."/lang"); + $class = $ext['tab']."_app"; + if (class_exists($class)) + $this->add_application(new $class()); + $_SESSION['get_text']->add_domain($_SESSION['language']->code, + $path_to_root."/lang"); + } } }