]> git.immae.eu Git - github/shaarli/Shaarli.git/commit - application/plugin/PluginManager.php
New init function for plugins, supports errors reporting 659/head
authorArthurHoaro <arthur@hoa.ro>
Fri, 14 Oct 2016 11:22:58 +0000 (13:22 +0200)
committerArthurHoaro <arthur@hoa.ro>
Fri, 14 Oct 2016 11:22:58 +0000 (13:22 +0200)
commit7fde6de1212323418401c15efba06026c704ca87
tree63b7efe598d1c563eee939fe9be3505afff1d873
parentf63632a6fb84594b8aeacb387a5cd17b4a841d2c
New init function for plugins, supports errors reporting

All plugins can optionally add an init function named `pluginname_init()` which is called when the plugin is loaded.

This function is aware of the config, and can return initialization errors, which are displayed in the header template.

Note that the previous error system hack no longer work.
application/PageBuilder.php
application/PluginManager.php
index.php
plugins/demo_plugin/demo_plugin.php
plugins/readityourself/readityourself.php
plugins/wallabag/wallabag.php
tests/plugins/PluginReadityourselfTest.php
tests/plugins/PluginWallabagTest.php