Access to system settings moved from global scope to SysPrefs.
[fa-stable.git] / admin / db / fiscalyears_db.inc
index cec7380561f87db3aaa39aadc9ed171b39c19ca1..0d9a9d21646f463349790225860b1c1649f99004 100644 (file)
@@ -48,8 +48,6 @@ function get_fiscalyear($id)
 
 function get_current_fiscalyear()
 {
-       global $path_to_root;
-       include_once($path_to_root . "/admin/db/company_db.inc");
        $year = get_company_pref('f_year');
 
        $sql = "SELECT * FROM ".TB_PREF."fiscal_year WHERE id=".db_escape($year);