mirror of
https://gitlab.com/mojo42/Jirafeau.git
synced 2025-01-16 20:38:29 +01:00
[BUGFIX] use i18n string_id to avoid "FIXME" errors in install.php
This fix has been backported from #101 merge request in next-release Thanks @bendia Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
This commit is contained in:
parent
d00ef4f1b8
commit
c2127a10a2
14
install.php
14
install.php
@ -47,23 +47,13 @@ require(JIRAFEAU_ROOT . 'lib/template/header.php');
|
||||
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')) {
|
||||
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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user