Skip to content

Commit 8e5488b

Browse files
committed
Enlève l'erreur à la suppression de constant.php
En cours de développement, lorsqu'on supprime le fichier "constant.php", ça vérifie si ce fichier existe, et redirige vers l'installation. L'en-tête de redirection était envoyée, mais le script invoquait quand même "common.php" et générait l'erreur. Le script s'arrête maintenant après l'envoi de l'en-tête.
1 parent b2f49cc commit 8e5488b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

header.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?php
2-
if(!file_exists('constant.php'))header('location: install.php');
2+
if(!file_exists('constant.php')) {
3+
header('location: install.php');
4+
exit();
5+
}
36
require_once('common.php');
47

5-
?>
8+
?>

0 commit comments

Comments
 (0)