diff --git a/app/router.php b/app/router.php index 92b0148..ef2f2ed 100644 --- a/app/router.php +++ b/app/router.php @@ -60,6 +60,9 @@ function findAllContentFiles(string $dir, string $lang, string $defaultLang): ar foreach ($files as $file) { if ($file === '.' || $file === '..') continue; + // Exclude system files from content + if ($file === 'index.php') continue; + $ext = pathinfo($file, PATHINFO_EXTENSION); if (!in_array($ext, $extensions)) continue;