summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-12-21 19:36:27 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-12-21 19:36:27 +0000
commitca743aa6fd44e2055111b4d46a9efdf110f7a531 (patch)
tree9ff0cd86493f1647d07c6e218a00068e19e303bd /modules
parent8f673be382023a2bcbe49e072fdd647c7abfed9e (diff)
downloadbrdo-ca743aa6fd44e2055111b4d46a9efdf110f7a531.tar.gz
brdo-ca743aa6fd44e2055111b4d46a9efdf110f7a531.tar.bz2
- fixing doctype in rss feeds.
Diffstat (limited to 'modules')
-rw-r--r--modules/node.module2
-rw-r--r--modules/node/node.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/node.module b/modules/node.module
index a98521c5a..c4d515e6f 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -735,7 +735,7 @@ function node_feed($nodes = 0, $channel = array()) {
}
$output .= "<?xml version=\"1.0\" ". t("encoding=\"ISO-8859-1\""). "?>\n";
- $output .= "<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC \"-//W3C//ENTITIES Latin 1 for XHTML//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent\">\n";
+ $output .= "<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC \"-//W3C//ENTITIES Latin 1 for XHTML//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent\">]>\n";
// NOTE: &eacute; - for example - is the correct ISO-8859-1 translation of é (e acute) but apparently XML parsers don't (have to) understand it. To solve this problem, we use a DTD that defines commonly used entity such as &eacute;.
if (!$channel["version"]) $channel["version"] = "0.91";
if (!$channel["title"]) $channel["title"] = variable_get("site_name", "drupal") ." - ". variable_get("site_slogan", "");
diff --git a/modules/node/node.module b/modules/node/node.module
index a98521c5a..c4d515e6f 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -735,7 +735,7 @@ function node_feed($nodes = 0, $channel = array()) {
}
$output .= "<?xml version=\"1.0\" ". t("encoding=\"ISO-8859-1\""). "?>\n";
- $output .= "<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC \"-//W3C//ENTITIES Latin 1 for XHTML//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent\">\n";
+ $output .= "<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC \"-//W3C//ENTITIES Latin 1 for XHTML//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent\">]>\n";
// NOTE: &eacute; - for example - is the correct ISO-8859-1 translation of é (e acute) but apparently XML parsers don't (have to) understand it. To solve this problem, we use a DTD that defines commonly used entity such as &eacute;.
if (!$channel["version"]) $channel["version"] = "0.91";
if (!$channel["title"]) $channel["title"] = variable_get("site_name", "drupal") ." - ". variable_get("site_slogan", "");