Don't get the date on ajax request

This commit is contained in:
Michael RICOIS 2014-07-08 12:19:35 +00:00
parent c7f6359b87
commit 6252fb763e

View File

@ -12,7 +12,7 @@ class Application_Controller_Plugin_DataDate extends Zend_Controller_Plugin_Abst
$controller = $request->getControllerName();
$action = $request->getActionName();
if ( $layout->isEnabled() && $controller!='user' )
if ( $layout->isEnabled() && !$request->isXmlHttpRequest() && $controller!='user')
{
$view = $layout->getView();