]> git.immae.eu Git - github/shaarli/Shaarli.git/commit
New init function for plugins, supports errors reporting
authorArthurHoaro <arthur@hoa.ro>
Fri, 14 Oct 2016 11:22:58 +0000 (13:22 +0200)
committerArthurHoaro <arthur@hoa.ro>
Sat, 5 Nov 2016 13:30:13 +0000 (14:30 +0100)
commitbaec9c402873a716497b591b9756bf5b2c46ed9b
tree33ae9c12bdcce378ca08973f553df15a50c00e8c
parentb3c039b02f9608802d0ba2cf5b5742caa3b9d430
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