Redirect properly if not config.inc.php file
This commit is contained in:
parent
01d8f1786e
commit
79e603b700
1 changed files with 2 additions and 5 deletions
|
|
@ -134,7 +134,7 @@
|
|||
* </ul>
|
||||
*/
|
||||
|
||||
|
||||
// -- if there is not config.inc.php file then redirect to install.php
|
||||
if ( ! file_exists('..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php') )
|
||||
{
|
||||
echo <<<EOF
|
||||
|
|
@ -143,9 +143,6 @@ if (! file_exists('..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config
|
|||
window.location="install.php";
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
header("Location: install.php");
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue