From: Mikael Nordfeldth Date: Sun, 13 Jul 2014 17:46:51 +0000 (+0200) Subject: Properly output error messages in AJAX mode X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6de410bb6bfd2694ddb32fea4bec71a31cb057df;p=quix0rs-gnu-social.git Properly output error messages in AJAX mode --- diff --git a/lib/action.php b/lib/action.php index b26db428d4..d76baf8c8f 100644 --- a/lib/action.php +++ b/lib/action.php @@ -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(); }