// add method ajaxProcess in "run" method

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8827 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2011-09-28 08:06:10 +00:00
parent 877074f659
commit 58d205edc5
+7 -2
View File
@@ -111,7 +111,12 @@ abstract class ControllerCore
public function run()
{
$this->init();
$this->postProcess();
if ($this->ajax && method_exists($this, 'ajaxProcess'))
$this->ajaxProcess();
else
$this->postProcess();
if ($this->displayHeader)
{
$this->setMedia();
@@ -122,7 +127,7 @@ abstract class ControllerCore
if ($this->displayFooter)
$this->initFooter();
if ($this->ajax)
if ($this->ajax && method_exists($this, 'displayAjax'))
$this->displayAjax();
else
$this->display();