Skip to content

Commit

Permalink
fix(MultisitesController) array_walk trim across the configured theme…
Browse files Browse the repository at this point in the history
… names
  • Loading branch information
nyeholt committed Mar 16, 2020
1 parent a3c2f1f commit 5b1e622
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Extension/MultisitesControllerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function onAfterInit()
if ($theme) {
$selectedThemes = explode(',', $theme);
$selectedThemes[] = SSViewer::DEFAULT_THEME;
array_walk($selectedThemes, 'trim');
SSViewer::set_themes($selectedThemes);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/Extension/MultisitesSecurityExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function onBeforeSecurityLogin()
if ($site && $site->Theme) {
$selectedThemes = explode(',', $site->Theme);
$selectedThemes[] = SSViewer::DEFAULT_THEME;
array_walk($selectedThemes, 'trim');
SSViewer::set_themes($selectedThemes);
}
}
Expand Down

0 comments on commit 5b1e622

Please sign in to comment.