X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fevent.php;h=41fb53ffe9afe91312c3d2fa4799bede44ea6091;hb=d8cbc20a792ed8b04d7257186e571e926a5280ac;hp=106bbfd041fef3f8828a2676e10bb8f4b04bf465;hpb=be5d113fc684fcbe41b8374c62bfeb0f267216b7;p=quix0rs-gnu-social.git diff --git a/lib/event.php b/lib/event.php index 106bbfd041..41fb53ffe9 100644 --- a/lib/event.php +++ b/lib/event.php @@ -27,7 +27,7 @@ * @link http://status.net/ */ -if (!defined('STATUSNET')) { +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } @@ -138,4 +138,12 @@ class Event { } return false; } + + /** + * Disables any and all handlers that have been set up so far; + * use only if you know it's safe to reinitialize all plugins. + */ + public static function clearHandlers() { + Event::$_handlers = array(); + } }