diff options
Diffstat (limited to 'src/index.php')
-rw-r--r-- | src/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.php b/src/index.php index 4495cfa..0c5cc3b 100644 --- a/src/index.php +++ b/src/index.php @@ -103,7 +103,7 @@ function decodePasswordResetLink(Database &$db, string $token, string $signature function getThemeAndLangInfo(): array { $availableThemes = []; $currentTheme = $_GET["theme"] ?? $_COOKIE["theme"] ?? env("MYSTIC_FORUM_THEME") ?? "default"; - foreach (scandir($dir = __DIR__ . '/themes/') as $ent) { + foreach (scandir($dir = __ROOT__ . '/application/themes/') as $ent) { if ($ent[0] === "." || !is_dir($dir . "/" . $ent) || !is_file($theme_file = $dir . "/" . $ent . "/theme.json")) continue; $theme_info = json_decode(file_get_contents($theme_file)); |