diff options
author | neoraider <devnull@localhost> | 2006-04-18 19:24:01 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-04-18 19:24:01 +0200 |
commit | aea6a2fa30bff2be100858bfc582384df4b84195 (patch) | |
tree | 03ae5050890b194d2832c9915549ab203a09875f /code | |
parent | 531b89f69ab5e72900fbd2484d60491f68e9153b (diff) | |
download | neon-aea6a2fa30bff2be100858bfc582384df4b84195.tar neon-aea6a2fa30bff2be100858bfc582384df4b84195.zip |
code/links.inc.php: header sendet jetzt absolute URLs.
Diffstat (limited to 'code')
-rw-r--r-- | code/links.inc.php | 3 |
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 ''; |