From 6de410bb6bfd2694ddb32fea4bec71a31cb057df Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 13 Jul 2014 19:46:51 +0200 Subject: [PATCH] Properly output error messages in AJAX mode --- lib/action.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }