]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Properly output error messages in AJAX mode
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 13 Jul 2014 17:46:51 +0000 (19:46 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 13 Jul 2014 17:46:51 +0000 (19:46 +0200)
lib/action.php

index b26db428d41568ecf7d60788380eabafcf6b2f25..d76baf8c8f22ba332704e5eb98195f2d7f336dbd 100644 (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();
         }