Better handling of plugin incompatibility
If a PHP is raised while executing plugin hook, Shaarli will display an error instead of rendering the error page (or just ending in fatal error for default hooks). Also added phpErrorHandler which is handled differently that regular errorHandler by Slim.:
This commit is contained in:
parent
af41d5ab5d
commit
7e3dc0ba98
8 changed files with 91 additions and 51 deletions
tests/plugins/test
|
@ -19,3 +19,8 @@ function hook_test_random($data)
|
|||
|
||||
return $data;
|
||||
}
|
||||
|
||||
function hook_test_error()
|
||||
{
|
||||
new Unknown();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue