From 584cc77a2b7fc4e449d61c19cd0ba10615b61967 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Wed, 2 Dec 2015 13:57:10 -0500 Subject: [PATCH] Code simplification. --- themes/bootstrap3/templates/layout/layout.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/bootstrap3/templates/layout/layout.phtml b/themes/bootstrap3/templates/layout/layout.phtml index 1a39cce2449..67cfb74fc30 100644 --- a/themes/bootstrap3/templates/layout/layout.phtml +++ b/themes/bootstrap3/templates/layout/layout.phtml @@ -94,13 +94,13 @@ $this->headScript()->appendFile("keep_alive.js"); } ?> - <?=$this->headScript()?> <? $root = rtrim($this->url('home'), '/'); $translations = $this->jsTranslations()->getJSON(); $setupJS = "var VuFind = new VuFindNamespace('{$root}', {$translations});"; + $this->headScript()->appendScript($setupJS); ?> - <?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $setupJS, 'SET'); ?> + <?=$this->headScript()?> </head> <body class="<?=$this->layoutClass('offcanvas-row')?><? if ($this->layout()->rtl): ?> rtl<? endif; ?>"> <? // Set up the search box -- there are three possible cases: -- GitLab