[TASK] Adds 'image_id' to event 'backend_image_add' in addData array
This commit is contained in:
parent
cb4530f83c
commit
37cd0c3808
@ -3,6 +3,7 @@
|
||||
|
||||
Version 2.4-alpha2 ()
|
||||
------------------------------------------------------------------------
|
||||
* Adds 'image_id' to event 'backend_image_add' in addData array
|
||||
* Move MySQL databases from MyIsam and UTF8 to InnoDB and utf8mb4,
|
||||
enabling full unicode input.
|
||||
* added type 'media' to configuration types,
|
||||
|
@ -322,7 +322,7 @@ switch ($serendipity['GET']['adminAction']) {
|
||||
|
||||
// Insert into database
|
||||
$image_id = serendipity_insertImageInDatabase($tfile, $serendipity['POST']['target_directory'][$tindex], $authorid, null, $realname);
|
||||
serendipity_plugin_api::hook_event('backend_image_add', $target);
|
||||
serendipity_plugin_api::hook_event('backend_image_add', $target, array('image_id' => $image_id));
|
||||
$new_media[] = array(
|
||||
'image_id' => $image_id,
|
||||
'target' => $target,
|
||||
|
Loading…
x
Reference in New Issue
Block a user