X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fsystem_tests.inc;h=9ea89d01026e7ef10524f21fcbd7291f1aeeec0f;hb=22486f7826944e00937e7ccceab1a927c94d8f6a;hp=710178e4e294fe2dc9bb6f17a0a1d771c38faaa8;hpb=8ecdfec3e664440856af9b205d37e3327c126cfc;p=fa-stable.git diff --git a/includes/system_tests.inc b/includes/system_tests.inc index 710178e4..9ea89d01 100644 --- a/includes/system_tests.inc +++ b/includes/system_tests.inc @@ -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))) { @@ -407,7 +416,7 @@ function display_system_tests($install = false) ); - start_table(TABLESTYLE, "width=80%"); + start_table(TABLESTYLE, "width='80%'"); $th = array(_("Test"), _('Test type'), _("Value"), _("Comments")); table_header($th);