From a06d1867bba8371f84d84fc4fd1d6a1948f27f5f Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Mon, 25 Jun 2012 10:41:15 -0400
Subject: [PATCH] Finished theme initialization -- theme options are now
 correctly passed to view.

---
 module/VuFind/src/VuFind/Theme/Initializer.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/module/VuFind/src/VuFind/Theme/Initializer.php b/module/VuFind/src/VuFind/Theme/Initializer.php
index 9cde9aa8dac..ca0f1c81c30 100644
--- a/module/VuFind/src/VuFind/Theme/Initializer.php
+++ b/module/VuFind/src/VuFind/Theme/Initializer.php
@@ -259,7 +259,11 @@ class Initializer
      */
     protected function sendThemeOptionsToView()
     {
-        // TODO
+        // Get access to the view model:
+        $viewModel = $this->serviceManager->get('viewmanager')->getViewModel();
+
+        // Send down the view options:
+        $viewModel->setVariable('themeOptions', $this->getThemeOptions());
     }
 
     /**
-- 
GitLab