Add try/catch blocks around plugin instanciation so they can throw an exception if...
authorJehan-Guillaume (ioguix) de Rorthais <ioguix@free.fr>
Fri, 5 Apr 2013 10:54:37 +0000 (12:54 +0200)
committerJehan-Guillaume (ioguix) de Rorthais <ioguix@free.fr>
Fri, 5 Apr 2013 12:39:57 +0000 (14:39 +0200)
commitd747d6324d1ffdf835fd11071f6b97d2972f2ba9
tree77295135b4c092c5e0792272485fc8fe8f4e644e
parentd5e9a584cf4fb9f13554bda3eff350289d96f564
Add try/catch blocks around plugin instanciation so they can throw an exception if needed.

This is usefull if a plugin don't want to start for some reasons.
Throwing an exception from the plugin constructors allows to remove this
plugin entirely during the script execution.
classes/PluginManager.php
libraries/lib.inc.php