From 6fc2070a22cda40d174db205847dca4c214eeea6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 14 Jan 2004 22:30:09 +0000 Subject: Patch 5114 by Kjartan: - Adds drupal_set_header() and drupal_get_headers(). - Cache now stores custom headers. - Replace theme_head() with drupal_get_html_head(), added drupal_set_html_head(). - Added RSS autodiscover links to node, blog and taxonomy pages. --- modules/node.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index 7f1b2a532..0800cb94f 100644 --- a/modules/node.module +++ b/modules/node.module @@ -964,7 +964,7 @@ function node_feed($nodes = 0, $channel = array()) { $output .= format_rss_channel($channel["title"], $channel["link"], $channel["description"], $items, $channel["language"]); $output .= "\n"; - header("Content-Type: text/xml"); + drupal_set_header("Content-Type: text/xml; charset=utf-8"); print $output; } @@ -1506,6 +1506,7 @@ function node_page() { $output .= node_view(node_load(array("nid" => $node->nid, "type" => $node->type)), 1); } $output .= theme('pager', NULL, variable_get("default_nodes_main", 10)); + drupal_set_html_head(''); print theme("page", $output, ""); } } -- cgit v1.2.3