Access to system settings moved from global scope to SysPrefs.
[fa-stable.git] / includes / types.inc
index 65805a901787bbeb8fbf5ddc9444a74629c212b8..2c233be66f927b14074059665f7ca64c6388c09f 100644 (file)
@@ -186,8 +186,9 @@ define('CL_EXPENSE', 6);
 
 function get_class_type_convert($ctype)
 {
-       global $use_oldstyle_convert;
-       if (isset($use_oldstyle_convert) && $use_oldstyle_convert == 1)
+       global $SysPrefs;
+
+       if (isset($SysPrefs->use_oldstyle_convert) && $SysPrefs->use_oldstyle_convert == 1)
                return (($ctype >= CL_INCOME || $ctype == CL_NONE) ? -1 : 1);
        else    
                return ((($ctype >= CL_LIABILITIES && $ctype <= CL_INCOME) || $ctype == CL_NONE) ? -1 : 1);