- if (!is_writable (VAR_FILES))
- add_error (t('The file directory is not writable!'), VAR_FILES);
-
- if (!is_writable (VAR_LINKS))
- add_error (t('The link directory is not writable!'), VAR_LINKS);
-
- if (!is_writable (VAR_ASYNC))
- add_error (t('The async directory is not writable!'), VAR_ASYNC);
-
- if (!is_writable (VAR_BLOCK))
- add_error (t('The block directory is not writable!'), VAR_BLOCK);
-
- /* Check if the install.php script is still in the directory. */
- if (file_exists (JIRAFEAU_ROOT . 'install.php'))
- add_error (t('Installer script still present'),
- t('Please make sure to delete the installer script ' .
- '"install.php" before continuing.'));
+ if (!is_writable(VAR_FILES)) {
+ add_error(t('FILE_DIR_W'), VAR_FILES);
+ }
+
+ if (!is_writable(VAR_LINKS)) {
+ add_error(t('LINK_DIR_W'), VAR_LINKS);
+ }
+
+ if (!is_writable(VAR_ASYNC)) {
+ add_error(t('ASYNC_DIR_W'), VAR_ASYNC);
+ }