From d84b5b2749d939cc3f9b12a461928f47133f897a 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 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10569 b9a71923-0436-4b27-9f14-aed3839534dd --- 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;