From 26a43260c572505bdb7b9df09507755d60a13476 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Tue, 5 Nov 2013 10:18:53 +0100 Subject: [PATCH] [-] CORE : invalid method name in displayAjax method of Controller action --- classes/controller/Controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/controller/Controller.php b/classes/controller/Controller.php index 5309aca01..b40cf9f1e 100644 --- a/classes/controller/Controller.php +++ b/classes/controller/Controller.php @@ -175,8 +175,8 @@ abstract class ControllerCore // then using displayAjax[action] if ($this->ajax) { - $action = Tools::getValue('action'); - if (!empty($action) && method_exists($this, 'displayAjax'.Tools::toCamelCase($action, true))) + $action = Tools::toCamelCase(Tools::getValue('action'), true); + if (!empty($action) && method_exists($this, 'displayAjax'.$action)) $this->{'displayAjax'.$action}(); elseif (method_exists($this, 'displayAjax')) $this->displayAjax();