Properly output error messages in AJAX mode

This commit is contained in:
Mikael Nordfeldth 2014-07-13 19:46:51 +02:00
parent 0a20abf1d8
commit 6de410bb6b

View File

@ -239,7 +239,7 @@ class Action extends HTMLOutputter // lawsuit
$this->elementEnd('head');
$this->elementStart('body');
if ($this->getError()) {
$this->element('p', array('id'=>'error'), $msg);
$this->element('p', array('id'=>'error'), $this->getError());
} else {
$this->showContent();
}