And in profiler too

This commit is contained in:
Andrew committed 2013-04-02 16:26:41 +04:00
1 parent e002124e57
commit da56996026
1 file changed
+3 -3
+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();
} }