diff --git a/.gitignore b/.gitignore index 377d83688536c5cbe6914090e9cab45b3cb39ce4..c9f628252ad286db0c83fe4a84e56fcdb025cd09 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ \.vscode +vbcms-config.php diff --git a/vbcms-core/functions.php b/vbcms-core/functions.php index 5d09cd29d3231ed6157290ed41adaf2c0f59e829..ba0829d80eece2a7a0f2ec246382c67571de5f4d 100644 --- a/vbcms-core/functions.php +++ b/vbcms-core/functions.php @@ -80,7 +80,8 @@ function loadModule($type, $moduleAlias, $moduleParams){ } } else { // Aucune extension ne gère cet alias - show404($type); + if(empty($moduleAlias)) include $GLOBALS['vbcmsRootPath'].'/vbcms-core/defaultPages/index.php'; + else show404($type); } } } else show404($type);