[FIX] Critical bug in Cotroller class

This commit is contained in:
Andrew
2013-04-02 16:21:27 +04:00
parent 857de139b0
commit e002124e57
+3 -3
View File
@@ -175,9 +175,9 @@ 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)))
$this->{'displayAjax'.$action}();
$action = 'displayAjax' . Tools::toCamelCase(Tools::getValue('action', true));
if (!empty($action) && method_exists($this, $action))
$this->{$action}();
elseif (method_exists($this, 'displayAjax'))
$this->displayAjax();
}