mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[feature/add_events] Globalize event dispatcher object in some functions
PHPBB3-9550
This commit is contained in:
parent
4f6f0c0897
commit
46597be1a3
2 changed files with 3 additions and 0 deletions
|
@ -493,6 +493,7 @@ function generate_text_for_display($text, $uid, $bitfield, $flags)
|
||||||
function generate_text_for_storage(&$text, &$uid, &$bitfield, &$flags, $allow_bbcode = false, $allow_urls = false, $allow_smilies = false)
|
function generate_text_for_storage(&$text, &$uid, &$bitfield, &$flags, $allow_bbcode = false, $allow_urls = false, $allow_smilies = false)
|
||||||
{
|
{
|
||||||
global $phpbb_root_path, $phpEx;
|
global $phpbb_root_path, $phpEx;
|
||||||
|
global $phpbb_dispatcher;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use this event to modify the text before it is prepared for storage
|
* Use this event to modify the text before it is prepared for storage
|
||||||
|
@ -560,6 +561,7 @@ function generate_text_for_storage(&$text, &$uid, &$bitfield, &$flags, $allow_bb
|
||||||
function generate_text_for_edit($text, $uid, $flags)
|
function generate_text_for_edit($text, $uid, $flags)
|
||||||
{
|
{
|
||||||
global $phpbb_root_path, $phpEx;
|
global $phpbb_root_path, $phpEx;
|
||||||
|
global $phpbb_dispatcher;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use this event to modify the text before it is decoded for editing
|
* Use this event to modify the text before it is decoded for editing
|
||||||
|
|
|
@ -162,6 +162,7 @@ function user_update_name($old_name, $new_name)
|
||||||
function user_add($user_row, $cp_data = false)
|
function user_add($user_row, $cp_data = false)
|
||||||
{
|
{
|
||||||
global $db, $user, $auth, $config, $phpbb_root_path, $phpEx;
|
global $db, $user, $auth, $config, $phpbb_root_path, $phpEx;
|
||||||
|
global $phpbb_dispatcher;
|
||||||
|
|
||||||
if (empty($user_row['username']) || !isset($user_row['group_id']) || !isset($user_row['user_email']) || !isset($user_row['user_type']))
|
if (empty($user_row['username']) || !isset($user_row['group_id']) || !isset($user_row['user_email']) || !isset($user_row['user_type']))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue