Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Dec 9, 2024
1 parent 75024ff commit a57f326
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/VuFindTheme/src/VuFindTheme/Initializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ protected function getThemeOptions($currentTheme)
$name = trim($subparts[0]);
$desc = isset($subparts[1]) ? trim($subparts[1]) : '';
$desc = empty($desc) ? $name : $desc;
// Easiest and most accurate way to pick a selected theme is to check
// if the name matches the current value of the ui cookie:
$selected = $this->cookieManager->get('ui') === $name;
$foundSelected = $foundSelected || $selected;
if (!empty($name)) {
Expand Down

0 comments on commit a57f326

Please sign in to comment.