From 3c06a57588ac1122c135f8add3ecf64d7369a95e Mon Sep 17 00:00:00 2001
From: SofianeLasri <alasri250@gmail.com>
Date: Sat, 4 Sep 2021 15:01:41 +0200
Subject: [PATCH] 15H01 - Minor bug fix

---
 .gitignore               | 1 +
 vbcms-core/functions.php | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 377d836..c9f6282 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 5d09cd2..ba0829d 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);
-- 
GitLab