Changeset 868
- Timestamp:
- 09/17/06 16:26:21 (2 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 modified
-
Changes (modified) (1 diff)
-
MANIFEST (modified) (1 diff)
-
lib/OpenGuides/Config.pm (modified) (4 diffs)
-
lib/OpenGuides/Template.pm (modified) (2 diffs)
-
t/18_http_headers.t (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Changes
r864 r868 5 5 Add UPGRADING file which summarises inmportant information for people 6 6 upgrading. 7 Add an optional new config parameter, http_charset, which will set 8 an explict charset http header on all responses. 7 9 8 10 0.57 12 September 2006 -
trunk/MANIFEST
r864 r868 73 73 t/16_test_tester.t 74 74 t/17_commit_node.t 75 t/18_http_headers.t 75 76 t/21_rdf.t 76 77 t/22_feed_recent_changes.t -
trunk/lib/OpenGuides/Config.pm
r857 r868 9 9 custom_lib_path use_plucene indexing_directory enable_page_deletion 10 10 admin_pass stylesheet_url site_name navbar_on_home_page home_name 11 site_desc default_city default_country contact_email default_language 11 site_desc default_city default_country contact_email 12 default_language http_charset 12 13 formatting_rules_node formatting_rules_link backlinks_in_title template_path 13 14 custom_template_path geo_handler ellipsoid gmaps_api_key centre_long … … 80 81 default_country => "", 81 82 default_language => "en", 83 http_charset => "", 82 84 formatting_rules_node => "Text Formatting Examples", 83 85 formatting_rules_link => "http://openguides.org/page/text_formatting", … … 150 152 contact_email => "Contact email address for the site administrator?", 151 153 default_language => "What language will the site be in? (Please give an ISO language code.)", 154 http_charset => "What character set should we put in the http headers? (This won't change the character set internally, just what it's reported as). Leave blank for none to be sent", 152 155 formatting_rules_node => "What's the name of the node or page to use for the text formatting rules link (this is by default an external document, but if you make formatting_rules_link empty, it will be a wiki node instead", 153 156 formatting_rules_link => "What URL do you want to use for the text formatting rules (leave blank to use a wiki node instead)?", … … 239 242 =item * default_language (default: C<en>) 240 243 244 =item * http_charset 245 241 246 =item * contact_email 242 247 -
trunk/lib/OpenGuides/Template.pm
r841 r868 161 161 enable_page_deletion => $enable_page_deletion, 162 162 language => $config->default_language, 163 http_charset => $config->http_charset, 163 164 default_city => $default_city, 164 165 gmaps_api_key => $config->gmaps_api_key, … … 184 185 } else { 185 186 $content_type = "text/html"; 187 } 188 if ($tt_vars->{http_charset}) { 189 $content_type .= "; charset=".$tt_vars->{http_charset}; 186 190 } 187 191 $header = CGI::header( -type => $content_type, -cookie => $args{cookies} );
