summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d00ef4f)
This fix has been backported from #101 merge request in next-release
Thanks @bendia
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
if (!file_exists(JIRAFEAU_CFG)) {
// show an error if it is not possible to create the file
if (!@touch(JIRAFEAU_CFG)) {
if (!file_exists(JIRAFEAU_CFG)) {
// show an error if it is not possible to create the file
if (!@touch(JIRAFEAU_CFG)) {
- jirafeau_fatal_error(
- t('The local configuration file could not be created. Create a ' .
- '<code>lib/config.local.php</code> file and give the write ' .
- 'permission to the web server (preferred solution), or give the ' .
- 'write permission to the web server on the <code>lib</code> ' .
- 'directory.')
- );
+ jirafeau_fatal_error(t('CONF_SOLUTION'));
}
}
// is the local configuration writable?
if (!is_writable(JIRAFEAU_CFG) && !@chmod(JIRAFEAU_CFG, '0666')) {
}
}
// is the local configuration writable?
if (!is_writable(JIRAFEAU_CFG) && !@chmod(JIRAFEAU_CFG, '0666')) {
- jirafeau_fatal_error(
- t('The local configuration is not writable by the web server. ' .
- 'Give the write permission to the web server on the ' .
- '<code>lib/config.local.php</code> file.')
- );
+ jirafeau_fatal_error(t('CONF_SOLUTION_2'));