From: Craig Andrews Date: Wed, 23 Jun 2010 02:01:13 +0000 (-0400) Subject: Throw an error if queueing is disable when using an IM plugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dad0b06a386092b159118780a6a6801f3cf674de;p=quix0rs-gnu-social.git Throw an error if queueing is disable when using an IM plugin --- diff --git a/lib/implugin.php b/lib/implugin.php index 7125aaee8d..dafb8a416b 100644 --- a/lib/implugin.php +++ b/lib/implugin.php @@ -619,8 +619,13 @@ abstract class ImPlugin extends Plugin function initialize() { + if( ! common_config('queue', 'enabled')) + { + throw new ServerException("Queueing must be enabled to use IM plugins"); + } + if(is_null($this->transport)){ - throw new Exception('transport cannot be null'); + throw new ServerException('transport cannot be null'); } } }