// 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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user