summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-04-18 19:24:01 +0200
committerneoraider <devnull@localhost>2006-04-18 19:24:01 +0200
commitaea6a2fa30bff2be100858bfc582384df4b84195 (patch)
tree03ae5050890b194d2832c9915549ab203a09875f
parent531b89f69ab5e72900fbd2484d60491f68e9153b (diff)
downloadneon-aea6a2fa30bff2be100858bfc582384df4b84195.tar
neon-aea6a2fa30bff2be100858bfc582384df4b84195.zip
code/links.inc.php: header sendet jetzt absolute URLs.
-rw-r--r--code/links.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/code/links.inc.php b/code/links.inc.php
index d65eea1..4484a72 100644
--- a/code/links.inc.php
+++ b/code/links.inc.php
@@ -12,7 +12,8 @@
$ret = 'index.php?page=' . $page . ($extra ? '&' . $extra : '');
if($html) return htmlspecialchars($ret);
- else return $ret;
+
+ return 'http://' . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['PHP_SELF']), '/\\'). '/' . $ret;
}
return '';