Oops, fixed the bug when absolute links were specified in 'menu.ini'.

(ugha)
This commit is contained in:
ugha
2004-07-23 03:50:18 +00:00
committed by zzz
parent c40ae6608f
commit 1a4a8c0666

View File

@@ -23,7 +23,10 @@ function buildmenu() {
if (isset($page_config['nolink'])) {
$link = $title;
} else {
$link = "<a href=\"/$uri\">$title</a>";
if(preg_match("/^(http:\/\/|\/)", $title))
$link = "<a href=\"$uri\">$title</a>";
else
$link = "<a href=\"$uri\">/$title</a>";
}
switch ($page_config['depth']) {