diff options
| author | Máté Bartus <mate.bartus@gmail.com> | 2016-04-10 10:30:15 +0200 |
|---|---|---|
| committer | Máté Bartus <mate.bartus@gmail.com> | 2016-04-10 10:30:15 +0200 |
| commit | 9163cc28647e9936fe9c9e390871f9130d2bf40b (patch) | |
| tree | 1d42148a5f41e7127738c6a958cfc5fc0c542f3a /phpBB/phpbb | |
| parent | 4e8981ee372e16caa1ebf1b36c877e06ed75bf3a (diff) | |
| download | forums-9163cc28647e9936fe9c9e390871f9130d2bf40b.tar forums-9163cc28647e9936fe9c9e390871f9130d2bf40b.tar.gz forums-9163cc28647e9936fe9c9e390871f9130d2bf40b.tar.bz2 forums-9163cc28647e9936fe9c9e390871f9130d2bf40b.tar.xz forums-9163cc28647e9936fe9c9e390871f9130d2bf40b.zip | |
[ticket/14589] Add error messages for failable installer requirements
PHPBB3-14589
Diffstat (limited to 'phpBB/phpbb')
| -rw-r--r-- | phpBB/phpbb/install/module/requirements/task/check_filesystem.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/phpBB/phpbb/install/module/requirements/task/check_filesystem.php b/phpBB/phpbb/install/module/requirements/task/check_filesystem.php index 2aec3915e0..868af39433 100644 --- a/phpBB/phpbb/install/module/requirements/task/check_filesystem.php +++ b/phpBB/phpbb/install/module/requirements/task/check_filesystem.php @@ -177,7 +177,9 @@ class check_filesystem extends \phpbb\install\task_base if (!($exists && $writable)) { $title = ($exists) ? 'FILE_NOT_WRITABLE' : 'FILE_NOT_EXISTS'; - $description = array($title . '_EXPLAIN', $file); + $lang_suffix = '_EXPLAIN'; + $lang_suffix .= ($failable) ? '_OPTIONAL' : ''; + $description = array($title . $lang_suffix, $file); if ($failable) { @@ -244,7 +246,9 @@ class check_filesystem extends \phpbb\install\task_base if (!($exists && $writable)) { $title = ($exists) ? 'DIRECTORY_NOT_WRITABLE' : 'DIRECTORY_NOT_EXISTS'; - $description = array($title . '_EXPLAIN', $dir); + $lang_suffix = '_EXPLAIN'; + $lang_suffix .= ($failable) ? '_OPTIONAL' : ''; + $description = array($title . $lang_suffix, $dir); if ($failable) { |
