diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-02-04 22:09:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-02-04 22:09:38 +0000 |
commit | de2e393933bb7163148c5010a7c14be9004117bf (patch) | |
tree | fa1e6a2984bb5de5ed5f22c599397faca979b34c /modules/headline.module | |
parent | b1d395d52d160c203edff69c323c031f833a8219 (diff) | |
download | brdo-de2e393933bb7163148c5010a7c14be9004117bf.tar.gz brdo-de2e393933bb7163148c5010a7c14be9004117bf.tar.bz2 |
- various updates, bugfixes and improvements
Diffstat (limited to 'modules/headline.module')
-rw-r--r-- | modules/headline.module | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/headline.module b/modules/headline.module index 8bb89d310..306944cea 100644 --- a/modules/headline.module +++ b/modules/headline.module @@ -7,9 +7,8 @@ $module = array("page" => "headline_page", "admin" => "headline_admin", "export" => "headline_export"); -include "includes/common.inc"; -include "modules/backend.class"; - +include_once "includes/common.inc"; +include_once "modules/backend.class"; function headline_blocks() { global $theme; @@ -37,7 +36,7 @@ function headline_blocks() { } // Print backend box to screen: - $theme->box($backend->site, "$content<P ALIGN=\"right\">[ <A HREF=\"$backend->url\">more</A> ]\n"); + $theme->box($backend->site, $content); print " </TD>\n"; if ($state % 3 == 2) print " </TR>\n"; @@ -185,8 +184,7 @@ function headline_admin() { function headline_export($uri) { global $site_name, $site_url, $HTTP_REFERER, $HTTP_USER_AGENT; - if ($uri[2] == "headlines.rdf") { - + if ($uri[1] == "headlines.rdf") { watchdog("message", "grabbed 'headlines.rdf' - referring url: $HTTP_REFERER - user agent: $HTTP_USER_AGENT"); header("Content-Type: text/plain"); |