From f3f99d3f63e1d435cd6645eafb9181a243ca7208 Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Wed, 23 Nov 2011 17:12:18 +0000 Subject: [PATCH] // BO menu now uses the new icons --- classes/AdminController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/AdminController.php b/classes/AdminController.php index ed18bb354..45c0a4e4b 100644 --- a/classes/AdminController.php +++ b/classes/AdminController.php @@ -1194,9 +1194,8 @@ class AdminControllerCore extends Controller $img = _MODULE_DIR_.$tab['module'].'/'.$tab['class_name'].'.png'; // retrocompatibility - if (!file_exists($img)) + if (!file_exists(dirname(_PS_ROOT_DIR_).$img)) $img = str_replace('png', 'gif', $img); - // tab[class_name] does not contains the "Controller" suffix $tabs[$index]['current'] = ($tab['class_name'].'Controller' == get_class($this)) || (Tab::getCurrentParentId() == $tab['id_tab']); $tabs[$index]['img'] = $img;