diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-04-06 14:14:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-04-06 14:14:16 +0000 |
commit | 8213f5b2627a6b63db9f84b572918bd7e3254dff (patch) | |
tree | bdaa19d917ce2d0db1ba54ef884e22a69130846a /modules/headline.module | |
parent | 048664f2786fce9bd049f39eea39a2a7fe2868f0 (diff) | |
download | brdo-8213f5b2627a6b63db9f84b572918bd7e3254dff.tar.gz brdo-8213f5b2627a6b63db9f84b572918bd7e3254dff.tar.bz2 |
A lot of small changes (search-n-replace) make a big commit:
- fixed update bug in book.module
- provide a log message when both adding and updating book pages
- all configurable variables are now accessed through "variable_get()":
- rewrote watchdog and submission throttle and removed watchdog.inc
- improved robustness of sections.inc
- imporved story.module
- updated ./database/database.sql
Diffstat (limited to 'modules/headline.module')
-rw-r--r-- | modules/headline.module | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/headline.module b/modules/headline.module index df525cac5..81a52e580 100644 --- a/modules/headline.module +++ b/modules/headline.module @@ -189,7 +189,7 @@ function headline_admin() { } function headline_export($uri) { - global $site_name, $site_url, $status, $HTTP_REFERER, $HTTP_USER_AGENT; + global $status, $HTTP_REFERER, $HTTP_USER_AGENT; if ($uri[1] == "headlines.rdf") { watchdog("message", "grabbed 'headlines.rdf' - referring url: $HTTP_REFERER - user agent: $HTTP_USER_AGENT"); @@ -202,9 +202,9 @@ function headline_export($uri) { print " xmlns=\"http://my.netscape.com/rdf/simple/0.9/\">\n"; print "<channel>\n"; - print " <title>$site_name</title>\n"; - print " <link>$site_url</link>\n"; - print " <description>$site_name</description>\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 "</channel>\n"; $result = db_query("SELECT * FROM node WHERE type = 'story' AND status = '$status[posted]' ORDER BY timestamp DESC LIMIT 10"); @@ -212,7 +212,7 @@ function headline_export($uri) { while ($node = db_fetch_object($result)) { print "<item>\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"; print "</item>\n"; } |