no need for hostname

This commit is contained in:
Shish Moom 2009-07-01 05:17:09 -07:00
parent 0b83a9d786
commit 57b2a13a62

View File

@ -71,7 +71,8 @@ function make_link($page=null, $query=null) {
if(is_null($page)) $page = $config->get_string('main_page'); if(is_null($page)) $page = $config->get_string('main_page');
if($config->get_bool('nice_urls', false)) { 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); $base = str_replace("/index.php", "", $full);
} }
else { else {