From e3cb33efb9ccc01e1ab55b79267391944f8c9b2d Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 1 Aug 2015 16:22:42 +0100 Subject: [PATCH] remove single-use var --- core/util.inc.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/util.inc.php b/core/util.inc.php index 8dbe4b7f..17895b26 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -386,9 +386,7 @@ function make_link($page=null, $query=null) { if(is_null($page)) $page = $config->get_string('main_page'); if(NICE_URLS || $config->get_bool('nice_urls', false)) { - #$full = "http://" . $_SERVER["SERVER_NAME"] . $_SERVER["PHP_SELF"]; - $full = $_SERVER["PHP_SELF"]; - $base = str_replace('/'.basename($_SERVER["SCRIPT_FILENAME"]), "", $full); + $base = str_replace('/'.basename($_SERVER["SCRIPT_FILENAME"]), "", $_SERVER["PHP_SELF"]); } else { $base = "./".basename($_SERVER["SCRIPT_FILENAME"])."?q=";