X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fpluginqueuehandler.php;h=dcd07d7208800bbf1fe2e907bc3ce0e5e85e4a8a;hb=6f76c8b59d04255b49e1c11b1d44478301c8437c;hp=24d504699706c7fe310f341ff796bc4f44c52f28;hpb=fdb64eed2f1d24ad38fe4a6bc680e3592647c0a6;p=quix0rs-gnu-social.git diff --git a/lib/pluginqueuehandler.php b/lib/pluginqueuehandler.php index 24d5046997..dcd07d7208 100644 --- a/lib/pluginqueuehandler.php +++ b/lib/pluginqueuehandler.php @@ -17,9 +17,7 @@ * along with this program. If not, see . */ -if (!defined('STATUSNET') && !defined('LACONICA')) { - exit(1); -} +if (!defined('GNUSOCIAL')) { exit(1); } /** * Queue handler for letting plugins handle stuff. @@ -42,9 +40,14 @@ class PluginQueueHandler extends QueueHandler return 'plugin'; } - function handle_notice($notice) + function handle($notice) { - Event::handle('HandleQueuedNotice', array(&$notice)); + try { + Event::handle('HandleQueuedNotice', array(&$notice)); + } catch (NoProfileException $unp) { + // We can't do anything about this, so just skip + return true; + } return true; } }