Also show header when printing this type of fatal error
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
50 files changed:
check_errors($cfg);
if (has_error()) {
check_errors($cfg);
if (has_error()) {
+ require(JIRAFEAU_ROOT . 'lib/template/header.php');
show_errors();
require(JIRAFEAU_ROOT . 'lib/template/footer.php');
exit;
show_errors();
require(JIRAFEAU_ROOT . 'lib/template/footer.php');
exit;
function check_errors($cfg)
{
function check_errors($cfg)
{
- if (file_exists(JIRAFEAU_ROOT . 'install.php')
- && !($cfg['installation_done'] === true)) {
- header('Location: install.php');
- exit;
+ if (!($cfg['installation_done'] === true)) {
+ if (file_exists(JIRAFEAU_ROOT . 'install.php')) {
+ header('Location: install.php');
+ exit;
+ } else {
+ add_error(t('INSTALL_FILE_NOT_FOUND_TITLE'), t('INSTALL_FILE_NOT_FOUND_DESC'));
+ }
- /* Checking for errors. */
if (!is_writable(VAR_FILES)) {
add_error(t('FILE_DIR_W'), VAR_FILES);
}
if (!is_writable(VAR_FILES)) {
add_error(t('FILE_DIR_W'), VAR_FILES);
}
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "حجم البيانات",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "حجم البيانات",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "Una quincena",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "Una quincena",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "Zwei Wochen",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Datengröße",
"2_W": "Zwei Wochen",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Datengröße",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "Installation file not found",
+ "INSTALL_FILE_NOT_FOUND_DESC": "Installation is not complete and install.php file does not seem to exist",
"REPORTING_AN_ISSUE": "Reporting an issue",
"SIZE_DATA": "Data size",
"INCOMPATIBLE_OPTIONS_W": "The following configuration options are incompatible:",
"REPORTING_AN_ISSUE": "Reporting an issue",
"SIZE_DATA": "Data size",
"INCOMPATIBLE_OPTIONS_W": "The following configuration options are incompatible:",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "Una quincena",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "Una quincena",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "Fichier d'installation non-trouvé",
+ "INSTALL_FILE_NOT_FOUND_DESC": "L'installation est incomplète et le ficher install.php est introuvable",
"2_W": "Deux semaines",
"REPORTING_AN_ISSUE": "Rapporter un bogue",
"SIZE_DATA": "Volume de données",
"2_W": "Deux semaines",
"REPORTING_AN_ISSUE": "Rapporter un bogue",
"SIZE_DATA": "Volume de données",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "גודל הנתונים",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "גודל הנתונים",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Veličina podataka",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Veličina podataka",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "Due settimane",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Dimensione dei dati",
"2_W": "Due settimane",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Dimensione dei dati",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "To uker",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Datastørrelse",
"2_W": "To uker",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Datastørrelse",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "Twee weken",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "Twee weken",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Rozmiar danych",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Rozmiar danych",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "Uma quinzena",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Tamanho dos dados",
"2_W": "Uma quinzena",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Tamanho dos dados",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "Uma quinzena",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "Uma quinzena",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Mărime date",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Mărime date",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "Två veckor",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Data storlek",
"2_W": "Två veckor",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Data storlek",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "İki hafta",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Veri boyutu",
"2_W": "İki hafta",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Veri boyutu",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Розмір даних",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "Розмір даних",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
+ "INSTALL_FILE_NOT_FOUND_TITLE": "",
+ "INSTALL_FILE_NOT_FOUND_DESC": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",
"2_W": "",
"REPORTING_AN_ISSUE": "",
"SIZE_DATA": "",