Correct user information

This commit is contained in:
Michael RICOIS 2012-10-25 13:26:51 +00:00
parent 33214f44dd
commit 08700967e2

View File

@ -22,13 +22,16 @@ class ErrorController extends Zend_Controller_Action
break;
}
$auth = Zend_Auth::getInstance();
$identity = $auth->getIdentity();
//Envoyer les erreurs par mail
$message = '';
$message.= 'Erreur Applicative : ';
$message.= "\n";
$message.= 'Message : '.$errors->exception->getMessage();
$message.= "\n";
$message.= 'Utilisateur : '.$user->getLogin();
$message.= 'Utilisateur : '.$identity->login;
$message.= "\n";
$message.= "File :".$errors->exception->getFile().", Ligne : ".$errors->exception->getLine();
$message.= "\n";