aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-03-16 11:37:46 +0100
committerJoas Schilling <nickvergessen@gmx.de>2012-08-01 10:18:42 +0200
commit02244397d1ecb149322c0c7847718e14742c14a2 (patch)
treed28b2345dcfb6ac397dd3d75c70b8c93616a5151 /phpBB
parent8d4c7d2e80a17b2ec5134e4dbe7fea5bfe57d02f (diff)
downloadforums-02244397d1ecb149322c0c7847718e14742c14a2.tar
forums-02244397d1ecb149322c0c7847718e14742c14a2.tar.gz
forums-02244397d1ecb149322c0c7847718e14742c14a2.tar.bz2
forums-02244397d1ecb149322c0c7847718e14742c14a2.tar.xz
forums-02244397d1ecb149322c0c7847718e14742c14a2.zip
[feature/events] Adding ledge ucp_zebra_remove
Used by phpBB Gallery PHPBB3-9550
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/ucp/ucp_zebra.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_zebra.php b/phpBB/includes/ucp/ucp_zebra.php
index efe928b387..fd4f4ccaf4 100644
--- a/phpBB/includes/ucp/ucp_zebra.php
+++ b/phpBB/includes/ucp/ucp_zebra.php
@@ -25,7 +25,7 @@ class ucp_zebra
function main($id, $mode)
{
- global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx, $request;
+ global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx, $request, $phpbb_dispatcher;
$submit = (isset($_POST['submit']) || isset($_GET['add']) || isset($_GET['remove'])) ? true : false;
$s_hidden_fields = '';
@@ -54,6 +54,11 @@ class ucp_zebra
// Remove users
if (!empty($data['usernames']))
{
+ $vars = array('data');
+ $event = new phpbb_event_data(compact($vars));
+ $phpbb_dispatcher->dispatch('core.ucp_zebra_remove', $event);
+ extract($event->get_data_filtered($vars));
+
$sql = 'DELETE FROM ' . ZEBRA_TABLE . '
WHERE user_id = ' . $user->data['user_id'] . '
AND ' . $db->sql_in_set('zebra_id', $data['usernames']);