From d490598642bccc9b4b6f5a9f64e363ae3dd55f91 Mon Sep 17 00:00:00 2001 From: rMalie Date: Tue, 27 Sep 2011 12:08:14 +0000 Subject: [PATCH] // Fix lcfirst use ! --- 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;