[FEATURE] Add possibility to define http-equiv in meta tags
authorOliver Hader <oliver@typo3.org>
Fri, 18 Nov 2011 18:13:05 +0000 (19:13 +0100)
committerJigal van Hemert <jigal@xs4all.nl>
Thu, 15 Dec 2011 20:51:44 +0000 (21:51 +0100)
Add possibility to define http-equiv in meta tags, currently
this is only done if using the property "refresh".

Change-Id: I114fa763eb8522aea2b4de1a18e2bb0f1dde568b
Resolves: #31936
Related: #31938
Releases: 4.7
Reviewed-on: http://review.typo3.org/6742
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
typo3/sysext/cms/tslib/class.tslib_pagegen.php

index 5d3daa5..c8abda3 100644 (file)
@@ -814,7 +814,7 @@ class TSpagegen {
                                        $key = $theKey;
                                        if (trim($val)) {
                                                $a = 'name';
-                                               if (strtolower($key) == 'refresh') {
+                                               if (strtolower($key) === 'refresh' || !empty($conf[$theKey . '.']['httpEquivalent'])) {
                                                        $a = 'http-equiv';
                                                }
                                                $pageRenderer->addMetaTag('<meta ' . $a . '="' . $key . '" content="' . htmlspecialchars(trim($val)) . '"' . $endingSlash . '>');