From: Janusz Dobrowolski Date: Mon, 28 Sep 2009 14:51:02 +0000 (+0000) Subject: get_company_extensions() moved. X-Git-Tag: v2.4.2~19^2~1199 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=2072f365c27558bb3f93bfc4480a72ab539b406a;p=fa-stable.git get_company_extensions() moved. --- 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'] == "") {