From 7c32b171cd291575e8d1934efe27f528de853c33 Mon Sep 17 00:00:00 2001 From: rMalie Date: Tue, 27 Sep 2011 12:08:14 +0000 Subject: [PATCH] // Fix lcfirst use ! git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8796 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/AdminController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/AdminController.php b/classes/AdminController.php index a4a9142c1..2e4f021ac 100644 --- a/classes/AdminController.php +++ b/classes/AdminController.php @@ -152,7 +152,9 @@ class AdminControllerCore extends Controller $this->context->smarty->assign('content', $this->content); if (empty($this->template)) { - $default_tpl = substr(lcfirst(get_class($this)),0,-10).'.tpl'; + $class_name = get_class($this); + $class_name = strtolower($class_name[0]).substr($class_name, 1); + $default_tpl = substr($class_name,0,-10).'.tpl'; if (file_exists($this->context->smarty->template_dir.'/'.$default_tpl)) { $this->template = $default_tpl;