// Fix lcfirst use !
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8796 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -152,7 +152,9 @@ class AdminControllerCore extends Controller
|
|||||||
$this->context->smarty->assign('content', $this->content);
|
$this->context->smarty->assign('content', $this->content);
|
||||||
if (empty($this->template))
|
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))
|
if (file_exists($this->context->smarty->template_dir.'/'.$default_tpl))
|
||||||
{
|
{
|
||||||
$this->template = $default_tpl;
|
$this->template = $default_tpl;
|
||||||
|
|||||||
Reference in New Issue
Block a user