Skip to content

Commit 356c8c9

Browse files
More reliable way to get theme dir in Maintenance::__construct()
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
1 parent f1f5417 commit 356c8c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/Maintenance/Maintenance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class Maintenance
228228
public function __construct()
229229
{
230230
Security::frameOptionsHeader('SAMEORIGIN');
231-
self::$theme_dir = \dirname(SMF_SETTINGS_FILE) . '/Themes/default';
231+
self::$theme_dir = self::getBaseDir() . '/Themes/default';
232232

233233
// This might be overwritten by the tool, but we need a default value.
234234
self::$context['started'] = (int) TIME_START;

0 commit comments

Comments
 (0)