From 0b83a9d7869ed7a19eb58106c158be1f6a6eaf8d Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 29 Jun 2009 22:15:25 +0000 Subject: [PATCH] don't break when base_href='' --- core/util.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/util.inc.php b/core/util.inc.php index 77446970..8d067596 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -79,7 +79,7 @@ function make_link($page=null, $query=null) { } if(is_null($query)) { - return "$base/$page"; + return str_replace("//", "/", "$base/$page"); } else { if(strpos($base, "?")) {