diff --git a/lib/Froxlor/UI/Panel/UI.php b/lib/Froxlor/UI/Panel/UI.php index ea0e648b..3cec80f8 100644 --- a/lib/Froxlor/UI/Panel/UI.php +++ b/lib/Froxlor/UI/Panel/UI.php @@ -321,6 +321,10 @@ class UI } } } + // check for template-variant + if (preg_match("/([a-z0-9.\-]+)_([a-z0-9.\-]+)/i", $theme, $matches)) { + $theme = $matches[1]; + } if (!file_exists(Froxlor::getInstallDir() . '/templates/' . $theme)) { PhpHelper::phpErrHandler(E_USER_WARNING, "Theme '" . $theme . "' could not be found.", __FILE__, __LINE__); $theme = self::$default_theme; diff --git a/lib/init.php b/lib/init.php index af28cf12..bad47945 100644 --- a/lib/init.php +++ b/lib/init.php @@ -188,7 +188,7 @@ if (Update::versionInUpdate(Settings::Get('panel.version'), '2.0.0-beta1')) { // Check if a different variant of the theme is used $themevariant = "default"; -if (preg_match("/([a-z0-9\.\-]+)_([a-z0-9\.\-]+)/i", $theme, $matches)) { +if (preg_match("/([a-z0-9.\-]+)_([a-z0-9.\-]+)/i", $theme, $matches)) { $theme = $matches[1]; $themevariant = $matches[2]; } diff --git a/templates/Froxlor/user/index.html.twig b/templates/Froxlor/user/index.html.twig index 7a1aca42..b8672f8f 100644 --- a/templates/Froxlor/user/index.html.twig +++ b/templates/Froxlor/user/index.html.twig @@ -174,16 +174,16 @@