summaryrefslogtreecommitdiff
path: root/modules/backend.class
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-04-06 14:14:16 +0000
committerDries Buytaert <dries@buytaert.net>2001-04-06 14:14:16 +0000
commit8213f5b2627a6b63db9f84b572918bd7e3254dff (patch)
treebdaa19d917ce2d0db1ba54ef884e22a69130846a /modules/backend.class
parent048664f2786fce9bd049f39eea39a2a7fe2868f0 (diff)
downloadbrdo-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/backend.class')
-rw-r--r--modules/backend.class4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/backend.class b/modules/backend.class
index b31372fb5..6c0914d57 100644
--- a/modules/backend.class
+++ b/modules/backend.class
@@ -46,8 +46,6 @@ class backend {
}
function url2sql($timout = 10) {
- global $site_name;
-
if ($this->file) {
// Decode URL:
$url = parse_url($this->file);
@@ -57,7 +55,7 @@ class backend {
if ($fp) {
// Request data via URL:
- fputs($fp, "GET $url[path]?$url[query] HTTP/1.0\nUser-Agent: $site_name\nHost: $url[host]\nAccept: */*\n\n");
+ fputs($fp, "GET $url[path]?$url[query] HTTP/1.0\nUser-Agent: ". variable_get(site_name, "drupal") ."\nHost: $url[host]\nAccept: */*\n\n");
// Read data from socket:
while(!feof($fp)) $data .= fgets($fp, 128);