diff options
Diffstat (limited to 'modules/headlineRSS10.module')
-rw-r--r-- | modules/headlineRSS10.module | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/modules/headlineRSS10.module b/modules/headlineRSS10.module index 5714ac9f2..1e15ceb1b 100644 --- a/modules/headlineRSS10.module +++ b/modules/headlineRSS10.module @@ -10,7 +10,7 @@ include_once "includes/common.inc"; include_once "modules/backend.class"; function headlineRSS10_export($uri) { - global $site_name, $site_url, $status, $HTTP_REFERER, $HTTP_USER_AGENT; + global $status, $HTTP_REFERER, $HTTP_USER_AGENT; if ($uri[1] == "headlinesRSS10.rdf") { watchdog("message", "grabbed 'headlinesRSS10.rdf' - referring url: $HTTP_REFERER - user agent: $HTTP_USER_AGENT"); @@ -23,10 +23,10 @@ function headlineRSS10_export($uri) { print "xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n"; print "xmlns=\"http://purl.org/rss/1.0/\">\n\n"; - print "<channel rdf:about=\"".$site_url."export/headlinesRSS10.rdf\">\n"; - print " <title>$site_name</title>\n"; - print " <link>$site_url</link>\n"; - print " <description>$site_name</description>\n"; + print "<channel rdf:about=\"". variable_get(site_url, "http://drupal/") ."export/headlinesRSS10.rdf\">\n"; + print " <title>". variable_get(site_name, "drupal") ."</title>\n"; + print " <link>". variable_get(site_url, "http://drupal/") ."</link>\n"; + print " <description>". variable_get(site_name, "drupal") ."</description>\n"; print " <items>\n"; @@ -35,8 +35,7 @@ function headlineRSS10_export($uri) { $result = db_query("SELECT * FROM node WHERE type = 'story' AND status = '$status[posted]' ORDER BY timestamp DESC LIMIT 10"); while ($node = db_fetch_object($result)) { - print " <rdf:li resource=\"". $site_url ."node.php?id=$node->nid\" />\n"; - + print " <rdf:li resource=\"". variable_get(site_url, "http://drupal/") ."node.php?id=$node->nid\" />\n"; } print " </rdf:Seq>\n"; @@ -46,9 +45,9 @@ function headlineRSS10_export($uri) { $result = db_query("SELECT * FROM node WHERE type = 'story' AND status = '$status[posted]' ORDER BY timestamp DESC LIMIT 10"); while ($node = db_fetch_object($result)) { - print "<item rdf:about=\"".$site_url ."node.php?id=$node->nid\">\n"; + print "<item rdf:about=\"". variable_get(site_url, "http://drupal/") ."node.php?id=$node->nid\">\n"; print " <title>". check_export($node->title) ."</title>\n"; - print " <link>". $site_url ."node.php?id=$node->nid</link>\n"; + print " <link>". variable_get(site_url, "http://drupal/") ."node.php?id=$node->nid</link>\n"; if ($node->abstract) print " <description>". check_output($node->abstract, 1) ."</description>\n"; |