mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/16174] Add function params to the event
PHPBB3-16174
This commit is contained in:
parent
6b85faf7da
commit
367b0bc208
1 changed files with 12 additions and 2 deletions
|
@ -1091,9 +1091,19 @@ class session
|
||||||
*
|
*
|
||||||
* @event core.set_cookie
|
* @event core.set_cookie
|
||||||
* @var bool disable_cookie Set to true to disable setting this cookie
|
* @var bool disable_cookie Set to true to disable setting this cookie
|
||||||
|
* @var string name Name of the cookie
|
||||||
|
* @var string cookiedata The data to hold within the cookie
|
||||||
|
* @var int cookietime The expiration time as UNIX timestamp
|
||||||
|
* @var bool httponly Use HttpOnly?
|
||||||
* @since 3.2.9-RC1
|
* @since 3.2.9-RC1
|
||||||
*/
|
*/
|
||||||
$vars = array('disable_cookie');
|
$vars = array(
|
||||||
|
'disable_cookie',
|
||||||
|
'name',
|
||||||
|
'cookiedata',
|
||||||
|
'cookietime',
|
||||||
|
'httponly',
|
||||||
|
);
|
||||||
extract($phpbb_dispatcher->trigger_event('core.set_cookie', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.set_cookie', compact($vars)));
|
||||||
|
|
||||||
if ($disable_cookie)
|
if ($disable_cookie)
|
||||||
|
|
Loading…
Add table
Reference in a new issue