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]
if ($this->ajax)
{
$action = Tools::getValue('action');
if (!empty($action) && method_exists($this, 'displayAjax'.Tools::toCamelCase($action)))
$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();
}