Index: branches/5.1.x/core/install/step_templates/check_paths.tpl
===================================================================
diff -u -N -r12127 -r12657
--- branches/5.1.x/core/install/step_templates/check_paths.tpl (.../check_paths.tpl) (revision 12127)
+++ branches/5.1.x/core/install/step_templates/check_paths.tpl (.../check_paths.tpl) (revision 12657)
@@ -3,17 +3,24 @@
?>
%s |
- %s |
+ %s |
toolkit->getSystemConfig('Misc', 'WriteablePath');
foreach ($this->writeableFolders as $folder_path) {
- $file_path = FULL_PATH . str_replace('$1', $writeable_base, $folder_path);
- if (file_exists($file_path)) {
- $folder_status = !is_writable($file_path) ? 'FAILED' : 'OK';
- echo sprintf($folder_tpl, $file_path, $folder_status);
+ $file_path = str_replace('$1', $writeable_base, $folder_path);
+ if (file_exists(FULL_PATH . $file_path)) {
+ if (!is_writable(FULL_PATH . $file_path)) {
+ $folder_status = '[FAILED]';
+ $error_message = ' (777 required)';
+ }
+ else {
+ $folder_status = '[OK]';
+ $error_message = '';
+ }
+ echo sprintf($folder_tpl, $file_path . $error_message, $folder_status);
}
}
?>
\ No newline at end of file