]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
try to fall back to default for exceptions on microapps
authorEvan Prodromou <evan@status.net>
Sun, 10 Apr 2011 23:33:11 +0000 (19:33 -0400)
committerEvan Prodromou <evan@status.net>
Sun, 10 Apr 2011 23:33:11 +0000 (19:33 -0400)
lib/microappplugin.php

index cd325560d32f07d5eb5d4efc436d5271c5781f0d..f36253db93a3c7b96e0cb42709dd4af211535025 100644 (file)
@@ -284,7 +284,14 @@ 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
+            $nli->showAuthor();
+            $nli->showContent();
+        }
 
         $nli->showNoticeLink();
         $nli->showNoticeSource();