Skip to content

armgit / Vvveb

Public Imported from GitHub
0

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

Set http status to 404 if module not found

givanzace9e7515b5f
diff --git a/system/core/frontcontroller.php b/system/core/frontcontroller.php
index 939039a..45b9148 100755
--- a/system/core/frontcontroller.php
+++ b/system/core/frontcontroller.php
@@ -330,7 +330,8 @@ class FrontController {
if (! $module && (APP != 'admin' && APP != 'install' && (Routes::init() && $parameters = Routes::match($uri)))) {
$_GET = array_merge($parameters, $_GET);
} else {
- $module = $module ?? ((APP == 'app') ? 'error404' : 'index');
+ $module = $module ?? ((APP == 'app') ? 'error404' : 'index');
+ self :: $status = 404;
}
if (isset($_GET['route'])) {