And in profiler too

This commit is contained in:
Andrew
2013-04-02 16:26:41 +04:00
parent 9b6ff354ed
commit 8445bb4a94
+3 -3
View File
@@ -227,9 +227,9 @@ abstract class Controller extends 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))) 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();
} }