Skip to content

Commit

Permalink
Fix selected option highlighting in theme menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Dec 9, 2024
1 parent 1bd821b commit 6d160ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions module/VuFindTheme/src/VuFindTheme/Initializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ public function init()
isset($this->event) ? $this->event->getRequest() : null
);

// Determine theme options:
$this->sendThemeOptionsToView($currentTheme);
// Determine theme options (note that we should use the ui cookie rather
// than the raw theme name, since options include aliases, and we want the
// user-selected alias, not the final resolved theme name):
$this->sendThemeOptionsToView($this->cookieManager->get('ui'));

// Make sure the current theme is set correctly in the tools object:
$error = null;
Expand Down

0 comments on commit 6d160ee

Please sign in to comment.