Changeset 2328 for trunk/system/helpers/html.php
- Timestamp:
- 03/24/2008 12:00:38 AM (8 months ago)
- Files:
-
- 1 modified
-
trunk/system/helpers/html.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/html.php
r2096 r2328 190 190 * 191 191 * @param string|array tag name, or an array of tags 192 * @param string tag value192 * @param string tag "content" value 193 193 * @return string 194 194 */ … … 208 208 } 209 209 210 // HTTP type meta tags 211 $http = array('content-type', 'expires', 'refresh', 'set-cookie'); 212 213 // Set the type attribute 214 $attr = in_array($tag, $http) ? 'http-equiv' : 'name'; 215 216 return '<meta '.$attr.'="'.$value.'" />'; 210 // Set the meta attribute value 211 $attr = in_array(strtolower($tag), Config::item('http.meta_equiv')) ? 'http-equiv' : 'name'; 212 213 return '<meta '.$attr.'="'.$tag.'" content="'.$value.'" />'; 217 214 } 218 215
