diff options
author | Jonas Kohl | 2024-10-15 16:01:32 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-10-15 16:01:32 +0200 |
commit | e0e89b9fdbf301e0ead944636023947a67aca57d (patch) | |
tree | cfaba505852996d7b3c1e62ec19376fdcfbdd3dd /src/index.php | |
parent | 80dc53d81f648609a1a34f468cd31c3bf752dc3d (diff) |
Move themes to different folder
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)); |