don't break when base_href=''

This commit is contained in:
Shish 2009-06-29 22:15:25 +00:00 committed by Shish Moom
parent 9e1c144f57
commit 0b83a9d786

View File

@ -79,7 +79,7 @@ function make_link($page=null, $query=null) {
} }
if(is_null($query)) { if(is_null($query)) {
return "$base/$page"; return str_replace("//", "/", "$base/$page");
} }
else { else {
if(strpos($base, "?")) { if(strpos($base, "?")) {