From c05e7f29c5472cead8ddb54f8b75b00924e14634 Mon Sep 17 00:00:00 2001 From: slawkens Date: Thu, 26 Oct 2017 16:07:10 +0200 Subject: [PATCH] * fixed tibiacom menus extending on some pages --- templates/tibiacom/boxes/premium.php | 4 +--- templates/tibiacom/index.php | 10 ++++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/templates/tibiacom/boxes/premium.php b/templates/tibiacom/boxes/premium.php index d5faae46..86f8166d 100644 --- a/templates/tibiacom/boxes/premium.php +++ b/templates/tibiacom/boxes/premium.php @@ -1,7 +1,5 @@
- -
-
+
\ No newline at end of file diff --git a/templates/tibiacom/index.php b/templates/tibiacom/index.php index ed118d8a..3133155e 100644 --- a/templates/tibiacom/index.php +++ b/templates/tibiacom/index.php @@ -24,6 +24,16 @@ if(isset($config['boxes'])) } else { $tmp = str_replace('/', '', URI); + $exp = explode('/', URI); + if(isset($exp[1]) && URI != 'account/create' && URI != 'account/lost') { + if ($exp[0] == 'account') { + $tmp = 'accountmanage'; + } else if ($exp[0] == 'news' && $exp[1] == 'archive') { + $tmp = 'newsarchive'; + } + else + $tmp = $exp[0]; + } } } else {