From: Evan Prodromou Date: Sun, 10 Apr 2011 23:33:11 +0000 (-0400) Subject: try to fall back to default for exceptions on microapps X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=57741c46ef6ac4d3f28845735d39f1889ee5b45b;p=quix0rs-gnu-social.git try to fall back to default for exceptions on microapps --- diff --git a/lib/microappplugin.php b/lib/microappplugin.php index cd325560d3..f36253db93 100644 --- a/lib/microappplugin.php +++ b/lib/microappplugin.php @@ -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();