Skip to content

Commit

Permalink
Merge pull request #7876 from Sesquipedalian/theme_variants
Browse files Browse the repository at this point in the history
Fixes `Class "Theme" not found` error when using theme variants
  • Loading branch information
Sesquipedalian authored Nov 12, 2023
2 parents e480459 + c4a9686 commit b730ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -2312,7 +2312,7 @@ public static function pickTheme()
self::$current->settings['theme_variants'] = array();

// Fill settings up.
eval(($matches[1] === '$' ? 'global $settings; ' : '') . $matches[0]);
eval(($matches[1] === '$' ? 'global $settings; ' : 'use SMF\\Theme; ') . $matches[0]);

if (!empty(self::$current->settings['theme_variants']))
{
Expand Down

0 comments on commit b730ca9

Please sign in to comment.