From a6d9016f0c5ebf714b4b249cc77b1b19e2eae2bf Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Fri, 16 May 2014 13:45:22 -0400 Subject: [PATCH] Character set declaration should be as early as possible in code. - Helps avoid Firefox double-load glitch in some cases. --- .../src/VuFindTheme/View/Helper/HeadThemeResources.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFindTheme/src/VuFindTheme/View/Helper/HeadThemeResources.php b/module/VuFindTheme/src/VuFindTheme/View/Helper/HeadThemeResources.php index f20876903af..50fa6a71c4b 100644 --- a/module/VuFindTheme/src/VuFindTheme/View/Helper/HeadThemeResources.php +++ b/module/VuFindTheme/src/VuFindTheme/View/Helper/HeadThemeResources.php @@ -64,7 +64,7 @@ class HeadThemeResources extends \Zend\View\Helper\AbstractHelper { // Set up encoding: $headMeta = $this->getView()->plugin('headmeta'); - $headMeta()->appendHttpEquiv( + $headMeta()->prependHttpEquiv( 'Content-Type', 'text/html; charset=' . $this->container->getEncoding() ); -- GitLab