mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 13:58:54 +00:00
[ticket/11862] Correct var names in user_delete() events due to prune-users
The prune-users feature modified the names of the used variables in this function. However, the variable names for the two events in this function were not changed to reflect that. This patch will take care of it. PHPBB3-11862
This commit is contained in:
parent
717e2337b9
commit
2c92123ca5
1 changed files with 10 additions and 8 deletions
|
@ -388,12 +388,13 @@ function user_delete($mode, $user_ids, $retain_username = true)
|
|||
* Event before a user is deleted
|
||||
*
|
||||
* @event core.delete_user_before
|
||||
* @var string mode Mode of deletion (retain/delete posts)
|
||||
* @var int user_id ID of the deleted user
|
||||
* @var mixed post_username Guest username that is being used or false
|
||||
* @var string mode Mode of deletion (retain/delete posts)
|
||||
* @var int user_ids IDs of the deleted user
|
||||
* @var mixed retain_username True if username should be retained
|
||||
* or false if not
|
||||
* @since 3.1-A1
|
||||
*/
|
||||
$vars = array('mode', 'user_id', 'post_username');
|
||||
$vars = array('mode', 'user_ids', 'retain_username');
|
||||
extract($phpbb_dispatcher->trigger_event('core.delete_user_before', compact($vars)));
|
||||
|
||||
// Before we begin, we will remove the reports the user issued.
|
||||
|
@ -616,12 +617,13 @@ function user_delete($mode, $user_ids, $retain_username = true)
|
|||
* Event after a user is deleted
|
||||
*
|
||||
* @event core.delete_user_after
|
||||
* @var string mode Mode of deletion (retain/delete posts)
|
||||
* @var int user_id ID of the deleted user
|
||||
* @var mixed post_username Guest username that is being used or false
|
||||
* @var string mode Mode of deletion (retain/delete posts)
|
||||
* @var int user_id IDs of the deleted user
|
||||
* @var mixed retain_username True if username should be retained
|
||||
* or false if not
|
||||
* @since 3.1-A1
|
||||
*/
|
||||
$vars = array('mode', 'user_id', 'post_username');
|
||||
$vars = array('mode', 'user_ids', 'retain_username');
|
||||
extract($phpbb_dispatcher->trigger_event('core.delete_user_after', compact($vars)));
|
||||
|
||||
// Reset newest user info if appropriate
|
||||
|
|
Loading…
Add table
Reference in a new issue