Good point, Malte!
Grischa, I would like to help, but therefor I would need some explaination that I could downgrade to a testscript to understand what is going on... or can we see where you did pull and change the send comment, pass it by, and where you can't see the changed comment afterwards?
Btw, I remembered havin seen some plugins doing this:
Code: Select all
function event_hook($event, &$bag, &$eventData) {
because they don't use addData and being lazy. When playing around with the new exception error function, I discoverd this being monitored as bad syntax in strict error settings:
Code: Select all
Fatal error: Uncaught exception 'ErrorException' with message 'Declaration of serendipity_event_s9ymarkup::event_hook() should be compatible with that of serendipity_event::event_hook()' in /var/www/serendipity/serendipity-nightly/plugins/serendipity_event_s9ymarkup/serendipity_event_s9ymarkup.php:147
in example.
So a plugins function event_hook() should
always look like the MOTHER in plugin_api.inc:
Code: Select all
function event_hook($event, &$bag, &$eventData, $addData = null) {