No more needed to delete install.php, now redirect to index.php if initial install already performed

Signed-off-by: Jerome Jutteau <mojo@couak.net>
This commit is contained in:
Zertrin 2014-04-28 23:01:04 +02:00 committed by Jerome Jutteau
parent 073ea480c7
commit 0e5cca951e
2 changed files with 5 additions and 6 deletions

View File

@ -134,6 +134,11 @@ if (!file_exists (JIRAFEAU_CFG))
exit;
}
}
else
{
header('Location: index.php');
exit;
}
if (!is_writable (JIRAFEAU_CFG) && !@chmod (JIRAFEAU_CFG, '0666'))
{

View File

@ -515,12 +515,6 @@ function check_errors ()
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.'));
}
/**