mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/12015] Add attachments to core.viewtopic_modify_post_row
PHPBB3-12015
This commit is contained in:
parent
f4cff08a19
commit
e3b70c4c08
1 changed files with 2 additions and 1 deletions
|
@ -1706,11 +1706,12 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
|
||||||
* @event core.viewtopic_modify_post_row
|
* @event core.viewtopic_modify_post_row
|
||||||
* @var array row Array with original post and user data
|
* @var array row Array with original post and user data
|
||||||
* @var array cp_row Custom profile field data of the poster
|
* @var array cp_row Custom profile field data of the poster
|
||||||
|
* @var array attachments List of attachments
|
||||||
* @var array user_poster_data Poster's data from user cache
|
* @var array user_poster_data Poster's data from user cache
|
||||||
* @var array post_row Template block array of the post
|
* @var array post_row Template block array of the post
|
||||||
* @since 3.1-A1
|
* @since 3.1-A1
|
||||||
*/
|
*/
|
||||||
$vars = array('row', 'cp_row', 'user_poster_data', 'post_row');
|
$vars = array('row', 'cp_row', 'attachments', 'user_poster_data', 'post_row');
|
||||||
extract($phpbb_dispatcher->trigger_event('core.viewtopic_modify_post_row', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.viewtopic_modify_post_row', compact($vars)));
|
||||||
|
|
||||||
if (isset($cp_row['row']) && sizeof($cp_row['row']))
|
if (isset($cp_row['row']) && sizeof($cp_row['row']))
|
||||||
|
|
Loading…
Add table
Reference in a new issue