forked from leftypol/leftypol
Convert $post to an object before passing it to event(). This way it can be modified by event handlers before entering the database. See http://tinyboard.org/docs/events.html#examples
This commit is contained in:
parent
29dc55c4e8
commit
4c6faeb7a2
2 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,7 @@ function event() {
|
|||
$args = func_get_args();
|
||||
|
||||
$event = $args[0];
|
||||
|
||||
$args = array_splice($args, 1);
|
||||
|
||||
if(!isset($events[$event]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue