get_company_extensions() moved.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 28 Sep 2009 14:51:02 +0000 (14:51 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 28 Sep 2009 14:51:02 +0000 (14:51 +0000)
admin/db/company_db.inc
admin/inst_module.php

index 6baa143da9eaae9090bf051f8fa9940752415393..77780a60a268ad7c827b95791e849f72fe2aca47 100644 (file)
@@ -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
index 5b5788e6739ac2674da37e3ff542e25ca5d330a8..5bce6ba6c509bf96a51de8834e4b00ab0eb8fa02 100644 (file)
@@ -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'] == "") {