From e0e89b9fdbf301e0ead944636023947a67aca57d Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Tue, 15 Oct 2024 16:01:32 +0200 Subject: Move themes to different folder --- src/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index.php') 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)); -- cgit v1.2.3