forked from I2P_Developers/i2p.www
remove unneeded absolute links
(duck)
This commit is contained in:
9
menu.php
9
menu.php
@@ -26,11 +26,8 @@ function buildmenu() {
|
|||||||
if (isset($page_config['nolink'])) {
|
if (isset($page_config['nolink'])) {
|
||||||
$link = $title;
|
$link = $title;
|
||||||
} else {
|
} else {
|
||||||
if(eregi("^(http://|/).*", $uri))
|
$link = "<a href=\"$uri\">$title</a>";
|
||||||
$link = "<a href=\"$uri\">$title</a>";
|
}
|
||||||
else
|
|
||||||
$link = "<a href=\"/$uri\">$title</a>";
|
|
||||||
}
|
|
||||||
|
|
||||||
switch ($page_config['depth']) {
|
switch ($page_config['depth']) {
|
||||||
case 1:
|
case 1:
|
||||||
@@ -48,4 +45,4 @@ function buildmenu() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user