X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fmanufacturing.php;h=3c9c861fcd685f25270e7de0340b2cbc209dd0dd;hb=f5d9da5adb7107b784a91ce1a81a912023b54ba6;hp=60650c690282c51678a5b9cb6dcd9070d2b446c9;hpb=baf1db99b16be17580591998a27ee47a1f67625b;p=fa-stable.git diff --git a/applications/manufacturing.php b/applications/manufacturing.php index 60650c69..3c9c861f 100644 --- a/applications/manufacturing.php +++ b/applications/manufacturing.php @@ -13,8 +13,7 @@ class manufacturing_app extends application { function manufacturing_app() { - global $installed_extensions; - $this->application("manuf",_("&Manufacturing")); + $this->application("manuf", _($this->help_context = "&Manufacturing")); $this->add_module(_("Transactions")); $this->add_lapp_function(0, _("Work &Order Entry"), @@ -37,16 +36,8 @@ class manufacturing_app extends application "manufacturing/manage/bom_edit.php?", 'SA_BOM'); $this->add_lapp_function(2, _("&Work Centres"), "manufacturing/manage/work_centres.php?", 'SA_WORKCENTRES'); - if (count($installed_extensions) > 0) - { - foreach ($installed_extensions as $mod) - { - if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "manuf") - $this->add_rapp_function(2, $mod["title"], - "modules/".$mod["path"]."/".$mod["filename"]."?", - isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' ); - } - } + + $this->add_extensions(); } }