From c21c00f350d3dc6fe32743a80113fcec6fb0eec6 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 --- 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'