From 4f5b1dd933a7c7cb843ded69e0ec4aed93570c3f Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Fri, 23 Sep 2011 15:45:09 +0000 Subject: [PATCH] // fix tab display and subtabbing git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8750 b9a71923-0436-4b27-9f14-aed3839534dd --- admin-dev/functions.php | 14 +++++++++----- classes/Tab.php | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/admin-dev/functions.php b/admin-dev/functions.php index 85d5b82ae..0b9b8a922 100644 --- a/admin-dev/functions.php +++ b/admin-dev/functions.php @@ -452,11 +452,15 @@ if ($adminObj = checkingTab($tab)) $tabs = array_reverse($tabs); $bread = ''; foreach ($tabs AS $key => $item) - $bread .= ' > - '.((sizeof($tabs) - 1 > $key) - ? '' - : '').' - '.$item['name'].((sizeof($tabs) - 1 > $key) ? '' : ''); + { + $bread .= ' >'; + if (count($tabs) - 1 > $key) + $bread .= ''; + + $bread .= $item['name']; + if (count($tabs) - 1 > $key) + $bread .= ''; + } // @TODO : a way to desactivate this feature echo'