[-] BO: Fix translations for overridden templates #PSCFV-7391

This commit is contained in:
Rémi Gaillard
2013-01-23 14:58:37 +01:00
parent 9f876f9300
commit e660265a1c
2 changed files with 10 additions and 2 deletions
+2
View File
@@ -65,6 +65,8 @@ function smartyTranslate($params, &$smarty)
// Eg. xxx/controllers/customers/xxx => AdminCustomers
if ($key !== false)
$class = 'Admin'.Tools::toCamelCase($folder_tree[$key + 1], true);
elseif (isset($folder_tree[0]))
$class = 'Admin'.Tools::toCamelCase($folder_tree[0], true);
else
$class = null;
}