|
@@ -454,7 +454,7 @@ function banPermissions()
|
|
|
'remove_own', 'remove_any',
|
|
|
'post_unapproved_topics', 'post_unapproved_replies_own', 'post_unapproved_replies_any',
|
|
|
);
|
|
|
- call_integration_hook('integrate_post_ban_permissions', array($denied_permissions));
|
|
|
+ call_integration_hook('integrate_post_ban_permissions', array(&$denied_permissions));
|
|
|
$user_info['permissions'] = array_diff($user_info['permissions'], $denied_permissions);
|
|
|
}
|
|
|
// Are they absolutely under moderation?
|
|
@@ -467,7 +467,7 @@ function banPermissions()
|
|
|
'post_reply_any' => 'post_unapproved_replies_any',
|
|
|
'post_attachment' => 'post_unapproved_attachments',
|
|
|
);
|
|
|
- call_integration_hook('integrate_warn_permissions', array($permission_change));
|
|
|
+ call_integration_hook('integrate_warn_permissions', array(&$permission_change));
|
|
|
foreach ($permission_change as $old => $new)
|
|
|
{
|
|
|
if (!in_array($old, $user_info['permissions']))
|
|
@@ -1195,7 +1195,7 @@ function spamProtection($error_type)
|
|
|
'reporttm' => $modSettings['spamWaitTime'] * 4,
|
|
|
'search' => !empty($modSettings['search_floodcontrol_time']) ? $modSettings['search_floodcontrol_time'] : 1,
|
|
|
);
|
|
|
- call_integration_hook('integrate_spam_protection', array($timeOverrides));
|
|
|
+ call_integration_hook('integrate_spam_protection', array(&$timeOverrides));
|
|
|
|
|
|
// Moderators are free...
|
|
|
if (!allowedTo('moderate_board'))
|