X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fsystem_tests.inc;h=883ee038d1b2e8a1174d2e3b41945b6371be6a99;hb=211598c5964fd138631395c7f329ec8b87c43c0b;hp=dca83e51c4858245c54fcc536d815769cd76ab6b;hpb=f911dbdc3b4be63c51c25cdf98cc0b7c2e54dffb;p=fa-stable.git diff --git a/includes/system_tests.inc b/includes/system_tests.inc index dca83e51..883ee038 100644 --- a/includes/system_tests.inc +++ b/includes/system_tests.inc @@ -120,10 +120,10 @@ function tst_gettext() function tst_debug() { - global $go_debug; + global $SysPrefs; $test['descr'] = _('Debugging mode'); $test['type'] = 0; - $test['test'] = $go_debug ? _("Yes") : _("No"); + $test['test'] = $SysPrefs->go_debug ? _("Yes") : _("No"); $test['result'] = $go_debug != 0; $test['comments'] = _('To switch debugging on set $go_debug>0 in config.php file'); @@ -132,8 +132,9 @@ function tst_debug() function tst_logging() { - global $error_logfile; + global $SysPrefs; + $error_logfile = $SysPrefs->error_logfile; $test['descr'] = _('Error logging'); $test['type'] = 2; // if error lgging is on, but log file does not exists try write