mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/14624] Move event so it actually works
PHPBB3-14624
This commit is contained in:
parent
8e1102b1da
commit
aa3c5286cd
1 changed files with 13 additions and 13 deletions
|
@ -479,19 +479,6 @@ class ucp_profile
|
||||||
{
|
{
|
||||||
$message_parser = new parse_message($signature);
|
$message_parser = new parse_message($signature);
|
||||||
|
|
||||||
// Allowing Quote BBCode
|
|
||||||
$message_parser->parse($enable_bbcode, $enable_urls, $enable_smilies, $config['allow_sig_img'], $config['allow_sig_flash'], true, $config['allow_sig_links'], true, 'sig');
|
|
||||||
|
|
||||||
if (sizeof($message_parser->warn_msg))
|
|
||||||
{
|
|
||||||
$error[] = implode('<br />', $message_parser->warn_msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!check_form_key('ucp_sig'))
|
|
||||||
{
|
|
||||||
$error[] = 'FORM_INVALID';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Modify user signature on editing profile in UCP
|
* Modify user signature on editing profile in UCP
|
||||||
*
|
*
|
||||||
|
@ -518,6 +505,19 @@ class ucp_profile
|
||||||
);
|
);
|
||||||
extract($phpbb_dispatcher->trigger_event('core.ucp_profile_modify_signature', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.ucp_profile_modify_signature', compact($vars)));
|
||||||
|
|
||||||
|
// Allowing Quote BBCode
|
||||||
|
$message_parser->parse($enable_bbcode, $enable_urls, $enable_smilies, $config['allow_sig_img'], $config['allow_sig_flash'], true, $config['allow_sig_links'], true, 'sig');
|
||||||
|
|
||||||
|
if (sizeof($message_parser->warn_msg))
|
||||||
|
{
|
||||||
|
$error[] = implode('<br />', $message_parser->warn_msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!check_form_key('ucp_sig'))
|
||||||
|
{
|
||||||
|
$error[] = 'FORM_INVALID';
|
||||||
|
}
|
||||||
|
|
||||||
if (!sizeof($error) && $submit)
|
if (!sizeof($error) && $submit)
|
||||||
{
|
{
|
||||||
$user->optionset('sig_bbcode', $enable_bbcode);
|
$user->optionset('sig_bbcode', $enable_bbcode);
|
||||||
|
|
Loading…
Add table
Reference in a new issue