mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge branch '3.1.x'
This commit is contained in:
commit
39f3313534
1 changed files with 11 additions and 0 deletions
|
@ -559,6 +559,17 @@ function change_poster(&$post_info, $userdata)
|
|||
|
||||
$post_info = $post_info[$post_id];
|
||||
|
||||
/**
|
||||
* This event allows you to perform additional tasks after changing a post's poster
|
||||
*
|
||||
* @event core.mcp_change_poster_after
|
||||
* @var array userdata Information on a post's new poster
|
||||
* @var array post_info Information on the affected post
|
||||
* @since 3.1.6-RC1
|
||||
*/
|
||||
$vars = array('userdata', 'post_info');
|
||||
extract($phpbb_dispatcher->trigger_event('core.mcp_change_poster_after', compact($vars)));
|
||||
|
||||
// Now add log entry
|
||||
$phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_MCP_CHANGE_POSTER', false, array(
|
||||
'forum_id' => $post_info['forum_id'],
|
||||
|
|
Loading…
Add table
Reference in a new issue