Fixed error on inserting refs with single quotes.
[fa-stable.git] / applications / suppliers.php
index a16312575240dbeff5b0e37d4490bd0206dc373a..f7c529e5de173f714ec353d78f6629f752b6e6d1 100644 (file)
@@ -1,21 +1,20 @@
 <?php
 /**********************************************************************
     Copyright (C) FrontAccounting, LLC.
-       Released under the terms of the GNU Affero General Public License,
-       AGPL, as published by the Free Software Foundation, either version 
-       of the License, or (at your option) any later version.
+       Released under the terms of the GNU General Public License, GPL, 
+       as published by the Free Software Foundation, either version 3 
+       of the License, or (at your option) any later version.
     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
-    See the License here <http://www.gnu.org/licenses/agpl-3.0.html>.
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-       include_once("./modules/installed_modules.php");
        class suppliers_app extends application 
        {
                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");
                        
                        $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"]."?");
                                }
                        }       
                }