[plugins] Implement an error management on the plugin_deactivate and plugin_uninstall functions #129

Open
opened 2026-10-04 23:44:19 +02:00 by adam · 0 comments
Owner

Reported by grum on 6 May 2010 19:10

functions plugin_activate and plugin_install have 3 parameters, one (the &$error parameter) is used to return error message.

There is no possibility to return error during deactivate and uninstall process (the only method accorded for a plugin to stop the process is to call the die() function => it's not a really good method)

Piwigo Bugtracker #1647

**Reported by grum on 6 May 2010 19:10** functions plugin_activate and plugin_install have 3 parameters, one (the &amp;$error parameter) is used to return error message. There is no possibility to return error during deactivate and uninstall process (the only method accorded for a plugin to stop the process is to call the die() function =&gt; it&#039;s not a really good method) [Piwigo Bugtracker #1647](http://piwigo.org/bugs/view.php?id=1647) <!-- github-sync-id:97226089 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#129