aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/ucp.php
diff options
context:
space:
mode:
authorMasterShredder <immortalshredder@gmail.com>2014-12-07 05:52:24 +0400
committerMasterShredder <immortalshredder@gmail.com>2014-12-07 05:52:24 +0400
commit4700b44125131d1121a346d6135e451cbf438be7 (patch)
tree3b8868de6b196b286e0c25ea19c5ba940c9022f0 /phpBB/ucp.php
parent641a9e5441dfe749187ba8b5cd3fa0c2b49a09f9 (diff)
downloadforums-4700b44125131d1121a346d6135e451cbf438be7.tar
forums-4700b44125131d1121a346d6135e451cbf438be7.tar.gz
forums-4700b44125131d1121a346d6135e451cbf438be7.tar.bz2
forums-4700b44125131d1121a346d6135e451cbf438be7.tar.xz
forums-4700b44125131d1121a346d6135e451cbf438be7.zip
[ticket/13422] Add new event core.ucp_save_custom_cookies
PHPBB3-13422
Diffstat (limited to 'phpBB/ucp.php')
-rw-r--r--phpBB/ucp.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/phpBB/ucp.php b/phpBB/ucp.php
index 182bc2e285..d8b8e92119 100644
--- a/phpBB/ucp.php
+++ b/phpBB/ucp.php
@@ -164,6 +164,22 @@ switch ($mode)
$cookie_name = str_replace($config['cookie_name'] . '_', '', $cookie_name);
+ /**
+ * Event to save custom cookies from deletion
+ *
+ * @event core.ucp_save_custom_cookies
+ * @var string cookie_name Cookie name to checking
+ * @var bool continue Do we save our cookie or not
+ * @since 3.1.3-RC1
+ */
+ $continue = false;
+ $vars = array('cookie_name', 'continue');
+ extract($phpbb_dispatcher->trigger_event('core.ucp_save_custom_cookies', compact($vars)));
+ if ($continue)
+ {
+ continue;
+ }
+
// Polls are stored as {cookie_name}_poll_{topic_id}, cookie_name_ got removed, therefore checking for poll_
if (strpos($cookie_name, 'poll_') !== 0)
{