From 2a00aec9edf4abafeca28d09a854252e89fe2e75 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Thu, 19 Dec 2024 12:40:29 -0500
Subject: [PATCH] Fix bug: incorrect theme assignment in console mode.

---
 module/VuFindTheme/src/VuFindTheme/Initializer.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/VuFindTheme/src/VuFindTheme/Initializer.php b/module/VuFindTheme/src/VuFindTheme/Initializer.php
index 2ba4d0fc3ed..f0db4c7af03 100644
--- a/module/VuFindTheme/src/VuFindTheme/Initializer.php
+++ b/module/VuFindTheme/src/VuFindTheme/Initializer.php
@@ -255,7 +255,7 @@ protected function getSelectedUI(array $themes, ?Request $request): string
 
         // Load standard configuration options:
         if (PHP_SAPI == 'cli') {
-            return $themes['standard'];
+            return 'standard';
         }
 
         // Find out if the user has a saved preference in the POST, URL or cookies: