projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup and preparing for XLS extension in class.mail.inc.
[fa-stable.git]
/
includes
/
system_tests.inc
diff --git
a/includes/system_tests.inc
b/includes/system_tests.inc
index 7f3665b9e2c7ea3643c2bf01ca9ee518be87ebcc..e7bc83b4cb48690113571a42c7093fa04918f0e2 100644
(file)
--- a/
includes/system_tests.inc
+++ b/
includes/system_tests.inc
@@
-23,7
+23,7
@@
function tst_mysql()
{
$test['descr'] = _('MySQL version'). ' >=4.1';
$test['type'] = 3;
{
$test['descr'] = _('MySQL version'). ' >=4.1';
$test['type'] = 3;
- $test['test'] =
mysql_get_server_info
();
+ $test['test'] =
db_get_version
();
$test['result'] = $test['test']>='4.1';
$test['comments'] = _('Upgrade MySQL server to version at least 4.1');
$test['result'] = $test['test']>='4.1';
$test['comments'] = _('Upgrade MySQL server to version at least 4.1');
@@
-34,7
+34,7
@@
function tst_phpmysql()
{
$test['descr'] = _('PHP MySQL extension');
$test['type'] = 3;
{
$test['descr'] = _('PHP MySQL extension');
$test['type'] = 3;
- $test['result'] =
function_exists('mysql_connect'
);
+ $test['result'] =
db_extension_exists(
);
$test['test'] = $test['result'] ? _('Yes'): _('No');
$test['comments'] = _('Your PHP has to have MySQL extension enabled.');
$test['test'] = $test['result'] ? _('Yes'): _('No');
$test['comments'] = _('Your PHP has to have MySQL extension enabled.');
@@
-120,11
+120,11
@@
function tst_gettext()
function tst_debug()
{
function tst_debug()
{
- global $
go_debug
;
+ global $
SysPrefs
;
$test['descr'] = _('Debugging mode');
$test['type'] = 0;
$test['descr'] = _('Debugging mode');
$test['type'] = 0;
- $test['test'] = $go_debug ? _("Yes") : _("No");
- $test['result'] = $go_debug != 0;
+ $test['test'] = $
SysPrefs->
go_debug ? _("Yes") : _("No");
+ $test['result'] = $
SysPrefs->
go_debug != 0;
$test['comments'] = _('To switch debugging on set $go_debug>0 in config.php file');
return $test;
$test['comments'] = _('To switch debugging on set $go_debug>0 in config.php file');
return $test;
@@
-132,8
+132,9
@@
function tst_debug()
function tst_logging()
{
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
$test['descr'] = _('Error logging');
$test['type'] = 2;
// if error lgging is on, but log file does not exists try write