summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 '';