Correct user information
This commit is contained in:
parent
33214f44dd
commit
08700967e2
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user