summaryrefslogtreecommitdiff
path: root/src/index.php
diff options
context:
space:
mode:
authorJonas Kohl2024-10-15 16:01:32 +0200
committerJonas Kohl2024-10-15 16:01:32 +0200
commite0e89b9fdbf301e0ead944636023947a67aca57d (patch)
treecfaba505852996d7b3c1e62ec19376fdcfbdd3dd /src/index.php
parent80dc53d81f648609a1a34f468cd31c3bf752dc3d (diff)
Move themes to different folder
Diffstat (limited to 'src/index.php')
-rw-r--r--src/index.php2
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));