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 ca675fcbb0
commit ef5d7474c5

View File

@ -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, "?")) {