// bug fixed translation, code change, no need to use strtolower

This commit is contained in:
mBertholino
2012-01-11 14:35:18 +00:00
parent 11dda92b61
commit 05f3293446
2 changed files with 11 additions and 17 deletions
+2 -1
View File
@@ -68,6 +68,7 @@ function smartyTranslate($params, &$smarty)
switch ($dir_filename)
{
// note : this may be modified later
case '.': $class = 'index';break;
case 'helper' : $class = 'AdminTab';break;
@@ -75,7 +76,7 @@ function smartyTranslate($params, &$smarty)
{
$parentClass = explode('/', $filename);
$key = array_search('controllers', $parentClass);
$class = 'Admin'.ucfirst($parentClass[$key + 1]);
$class = 'Admin'.Tools::toCamelCase($parentClass[$key + 1], true);
}
}