Show
Ignore:
Timestamp:
03/24/2008 12:00:38 AM (8 months ago)
Author:
Shadowhand
Message:

Fixing #514.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/helpers/html.php

    r2096 r2328  
    190190         * 
    191191         * @param   string|array   tag name, or an array of tags 
    192          * @param   string         tag value 
     192         * @param   string         tag "content" value 
    193193         * @return  string 
    194194         */ 
     
    208208                } 
    209209 
    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.'" />'; 
    217214        } 
    218215