forked from I2P_Developers/i2p.www
Oops, fixed the bug when absolute links were specified in 'menu.ini'.
(ugha)
This commit is contained in:
5
menu.php
5
menu.php
@@ -23,7 +23,10 @@ function buildmenu() {
|
|||||||
if (isset($page_config['nolink'])) {
|
if (isset($page_config['nolink'])) {
|
||||||
$link = $title;
|
$link = $title;
|
||||||
} else {
|
} 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']) {
|
switch ($page_config['depth']) {
|
||||||
|
Reference in New Issue
Block a user