From 2072f365c27558bb3f93bfc4480a72ab539b406a Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Mon, 28 Sep 2009 14:51:02 +0000 Subject: [PATCH] get_company_extensions() moved. --- admin/db/company_db.inc | 11 +++++++++++ admin/inst_module.php | 12 ------------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/admin/db/company_db.inc b/admin/db/company_db.inc index 6baa143d..77780a60 100644 --- a/admin/db/company_db.inc +++ b/admin/db/company_db.inc @@ -181,5 +181,16 @@ function get_base_sales_type() return $myrow[0]; } +function get_company_extensions($id = -1) { + global $path_to_root; + + $file = $path_to_root.($id == -1 ? '' : '/company/'.$id).'/installed_extensions.php'; + $installed_extensions = array(); + if (is_file($file)) { + include($file); + } + return $installed_extensions; +} + ?> \ No newline at end of file diff --git a/admin/inst_module.php b/admin/inst_module.php index 5b5788e6..5bce6ba6 100644 --- a/admin/inst_module.php +++ b/admin/inst_module.php @@ -34,18 +34,6 @@ else $selected_id = -1; //--------------------------------------------------------------------------------------------- -function get_company_extensions($id = -1) { - - global $path_to_root; - - $file = $path_to_root.($id == -1 ? '' : '/company/'.$id).'/installed_extensions.php'; - $installed_extensions = array(); - if (is_file($file)) { - include($file); - } - return $installed_extensions; -} - function check_data($id, $exts) { if ($_POST['name'] == "") { -- 2.30.2