X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fsystem_tests.inc;h=0729ec432c7de90b2a144e08423f73746690573c;hb=0489c00e7922e3a0d47cb66713206d11ef41d5e4;hp=798ef6776539c8251e9bb4a6fd704b972edb2e75;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git diff --git a/includes/system_tests.inc b/includes/system_tests.inc index 798ef677..0729ec43 100644 --- a/includes/system_tests.inc +++ b/includes/system_tests.inc @@ -228,7 +228,7 @@ function tst_tmpdir() function tst_langs($install) { - global $installed_languages, $path_to_root; + global $installed_languages, $path_to_root, $GetText; $test['descr'] = _('Language configuration consistency'); $test['type'] = 3; @@ -269,7 +269,7 @@ function tst_langs($install) $test['result'] = false; $test['comments'][] = sprintf( _('Missing %s translation file.'), $file); } - if (!$_SESSION['get_text']->check_support($lang['code'], $lang['encoding'])) + if (!$GetText->check_support($lang['code'], $lang['encoding'])) { $test['result'] = false; $test['comments'][] = sprintf(_('Missing system locale: %s'), $lang['code'].".".$lang['encoding']); @@ -359,9 +359,18 @@ function tst_extconfig($install) $test['result'] &= $t; } + foreach(array('Release', 'Themes', 'Languages', 'Extensions', 'Charts') as $file) { + $fname = $path_to_root."/modules/_cache/".$file.".gz"; + $t = !file_exists($fname) || is_writable($fname); + if (!$t) + $test['comments'][] = sprintf(_("'%s' is not writeable"), $fname); + $test['result'] &= $t; + } + if(!$test['result']) $test['comments'][] = _("Extensions configuration files and directories should be writeable"); + $fname = $path_to_root."/themes"; $themedir = opendir($fname); while (false !== ($fname = readdir($themedir))) {