Fix tibiacom account & news menu links

This commit is contained in:
slawkens
2025-01-13 23:05:16 +01:00
parent 0904b1bb87
commit 5e9c868dfa
2 changed files with 11 additions and 1 deletions

View File

@@ -35,6 +35,16 @@ if(isset($config['boxes']))
}
else {
$tmp = str_replace('/', '_', PAGE);
$exp = explode('/', PAGE);
if(PAGE !== 'account/create' && PAGE !== 'account/lost' && isset($exp[1])) {
if ($exp[0] === 'account') {
$tmp = 'account_manage';
} else if ($exp[0] === 'news' && $exp[1] === 'archive') {
$tmp = 'news_archive';
}
else
$tmp = $exp[0];
}
}
}
else {