remove unneeded absolute links

(duck)
This commit is contained in:
duck
2004-08-03 12:54:23 +00:00
committed by zzz
parent 335981befa
commit 2d9cbfcf5b

View File

@@ -26,11 +26,8 @@ function buildmenu() {
if (isset($page_config['nolink'])) {
$link = $title;
} else {
if(eregi("^(http://|/).*", $uri))
$link = "<a href=\"$uri\">$title</a>";
else
$link = "<a href=\"/$uri\">$title</a>";
}
$link = "<a href=\"$uri\">$title</a>";
}
switch ($page_config['depth']) {
case 1:
@@ -48,4 +45,4 @@ function buildmenu() {
}
}
}
?>
?>