X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fsuppliers.php;h=f7c529e5de173f714ec353d78f6629f752b6e6d1;hb=d497aeb2d93ed1c705007fa6ff84a4c470f7f538;hp=345b3d10e95e8786bc4aed5e83108b11999e89c5;hpb=55b2d0b983484860b14bce32711f1cd6c974bddb;p=fa-stable.git diff --git a/applications/suppliers.php b/applications/suppliers.php index 345b3d10..f7c529e5 100644 --- a/applications/suppliers.php +++ b/applications/suppliers.php @@ -13,7 +13,7 @@ { function suppliers_app() { - global $installed_modules; + global $installed_extensions; $this->application("AP",_("&Purchases")); $this->add_module(_("Transactions")); @@ -35,12 +35,12 @@ $this->add_module(_("Maintenance")); $this->add_lapp_function(2, _("&Suppliers"),"purchasing/manage/suppliers.php?"); - if (count($installed_modules) > 0) + if (count($installed_extensions) > 0) { - foreach ($installed_modules as $mod) + foreach ($installed_extensions as $mod) { - if ($mod["tab"] == "AP") - $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?"); + if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "AP") + $this->add_rapp_function(2, $mod["title"], "modules/".$mod["path"]."/".$mod["filename"]."?"); } } }