Ignore:
Timestamp:
Sep 17, 2006, 4:26:21 PM (15 years ago)
Author:
nick
Message:

Support the config flag http_charset, which sets a http charset header on content type. (Closes #141)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides/Template.pm

    r841 r868  
    161161        enable_page_deletion  => $enable_page_deletion,
    162162        language              => $config->default_language,
     163        http_charset          => $config->http_charset,
    163164        default_city          => $default_city,
    164165        gmaps_api_key         => $config->gmaps_api_key,
     
    184185        } else {
    185186            $content_type = "text/html";
     187        }
     188        if ($tt_vars->{http_charset}) {
     189            $content_type .= "; charset=".$tt_vars->{http_charset};
    186190        }
    187191        $header = CGI::header( -type => $content_type, -cookie => $args{cookies} );
Note: See TracChangeset for help on using the changeset viewer.