]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/microappplugin.php
better output for registration confirmation
[quix0rs-gnu-social.git] / lib / microappplugin.php
index cd325560d32f07d5eb5d4efc436d5271c5781f0d..1dfc44634fdb2017fa6c55253a62faff2c0c1f32 100644 (file)
@@ -284,7 +284,15 @@ abstract class MicroAppPlugin extends Plugin
         $out = $nli->out;
         $notice = $nli->notice;
 
-        $this->showNotice($notice, $out);
+        try {
+            $this->showNotice($notice, $out);
+        } catch (Exception $e) {
+            common_log(LOG_ERR, $e->getMessage());
+            // try to fall back
+            $out->elementStart('div');
+            $nli->showAuthor();
+            $nli->showContent();
+        }
 
         $nli->showNoticeLink();
         $nli->showNoticeSource();