[FIX] Critical bug in Cotroller class

This commit is contained in:
Andrew committed 2013-04-02 16:21:27 +04:00
1 parent 857de139b0
commit e002124e57
1 file changed
+3 -3
+3 -3
View File
@@ -175,9 +175,9 @@ abstract class ControllerCore
// then using displayAjax[action] // then using displayAjax[action]
if ($this->ajax) if ($this->ajax)
{ {
$action = Tools::getValue('action'); $action = 'displayAjax' . Tools::toCamelCase(Tools::getValue('action', true));
if (!empty($action) && method_exists($this, 'displayAjax'.Tools::toCamelCase($action, true))) if (!empty($action) && method_exists($this, $action))
$this->{'displayAjax'.$action}(); $this->{$action}();
elseif (method_exists($this, 'displayAjax')) elseif (method_exists($this, 'displayAjax'))
$this->displayAjax(); $this->displayAjax();
} }