Skip to content

Commit

Permalink
Make sure we're using the Default skin for the Wizard. Some people ha…
Browse files Browse the repository at this point in the history
…ve managed to install Material before hitting the Wizard...
  • Loading branch information
michaelherger committed Nov 20, 2024
1 parent 9e17e0a commit e56823d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Slim/Web/Settings/Server/Wizard.pm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ sub handler {

$paramRef->{languageoptions} = Slim::Utils::Strings::languageOptions();

# redirect to the Default skin if another skin is set
if ($paramRef->{webroot} eq '/' && $paramRef->{skinOverride} ne 'Default' && $paramRef->{systemSkin} ne 'Default') {
$response->code(RC_MOVED_TEMPORARILY);
$response->header('Location' => '/Default/settings/server/wizard.html');
return Slim::Web::HTTP::filltemplatefile($class->page, $paramRef);
}

# make sure we only enforce the wizard at the very first startup
if ($paramRef->{saveSettings}) {

Expand Down

0 comments on commit e56823d

Please sign in to comment.