From aea6a2fa30bff2be100858bfc582384df4b84195 Mon Sep 17 00:00:00 2001 From: neoraider Date: Tue, 18 Apr 2006 17:24:01 +0000 Subject: code/links.inc.php: header sendet jetzt absolute URLs. --- code/links.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'code') 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 ''; -- cgit v1.2.3