From 7d827d3392a4c6abbe7ae07021cf3d9d6ae2172c Mon Sep 17 00:00:00 2001
From: Shish Moom <shish@shishnet.org>
Date: Wed, 1 Jul 2009 05:17:09 -0700
Subject: [PATCH] no need for hostname

---
 core/util.inc.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/util.inc.php b/core/util.inc.php
index 8d067596..0ffdba84 100644
--- a/core/util.inc.php
+++ b/core/util.inc.php
@@ -71,7 +71,8 @@ function make_link($page=null, $query=null) {
 	if(is_null($page)) $page = $config->get_string('main_page');
 
 	if($config->get_bool('nice_urls', false)) {
-		$full = "http://" . $_SERVER["SERVER_NAME"] . $_SERVER["PHP_SELF"];
+		#$full = "http://" . $_SERVER["SERVER_NAME"] . $_SERVER["PHP_SELF"];
+		$full = $_SERVER["PHP_SELF"];
 		$base = str_replace("/index.php", "", $full);
 	}
 	else {