Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Fixed PHP Deprecated: exit(): Passing null https://github.com/givanz/Vvveb/issues/217

givanz1e4d9b8469cd
diff --git a/index.php b/index.php
index f616626..51ba2ee 100755
--- a/index.php
+++ b/index.php
@@ -72,14 +72,16 @@ if (! defined('APP')) {
if (isset($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], 'install') === false) {
//avoid redirect loop
- die(header("Location: $subdir/install/index.php"));
+ header("Location: $subdir/install/index.php");
+ exit();
}
}
} elseif (! is_installed() && (! defined('APP') || APP != 'install')) {
defined('APP') || define('APP', 'install');
if (isset($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], 'install') === false) {
- die(header("Location: $subdir/install/index.php"));
+ header("Location: $subdir/install/index.php");
+ exit();
}
}