X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fsuppliers.php;h=f7c529e5de173f714ec353d78f6629f752b6e6d1;hb=ea1ac6e8c569745bd4099d47936f6dfe86b8b9d4;hp=7058716e107b9b3e2fdc4635a59a4567986c5871;hpb=e3b48984f41047ad16201ff1e757af02d228d79e;p=fa-stable.git diff --git a/applications/suppliers.php b/applications/suppliers.php index 7058716e..f7c529e5 100644 --- a/applications/suppliers.php +++ b/applications/suppliers.php @@ -13,8 +13,8 @@ { function suppliers_app() { - global $installed_modules; - $this->application("AP",_("Purchases")); + global $installed_extensions; + $this->application("AP",_("&Purchases")); $this->add_module(_("Transactions")); $this->add_lapp_function(0, _("Purchase &Order Entry"),"purchasing/po_entry_items.php?NewOrder=Yes"); @@ -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"]."?"); } } }