mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
#12791 git-svn-id: file:///svn/phpbb/trunk@7806 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -540,7 +540,7 @@ if (!$get_info)
|
||||
'autoincrement' => 'smiley_id',
|
||||
|
||||
array('smiley_id', 'smilies.smilies_id', ''),
|
||||
array('code', 'smilies.code', 'phpbb_set_encoding'),
|
||||
array('code', 'smilies.code', array('function1' => 'phpbb_smilie_html_decode', 'function2' => 'phpbb_set_encoding', 'function3' => 'utf8_htmlspecialchars')),
|
||||
array('emotion', 'smilies.emoticon', 'phpbb_set_encoding'),
|
||||
array('smiley_url', 'smilies.smile_url', 'import_smiley'),
|
||||
array('smiley_width', 'smilies.smile_url', 'get_smiley_width'),
|
||||
@@ -862,7 +862,7 @@ if (!$get_info)
|
||||
array('user_lang', $config['default_lang'], ''),
|
||||
array('', 'users.user_lang', ''),
|
||||
array('user_timezone', 'users.user_timezone', ''),
|
||||
array('user_dateformat', 'users.user_dateformat', array('function1' => 'phpbb_set_encoding')),
|
||||
array('user_dateformat', 'users.user_dateformat', array('function1' => 'phpbb_set_encoding', 'function2' => 'fill_dateformat')),
|
||||
array('user_inactive_reason', '', 'phpbb_inactive_reason'),
|
||||
array('user_inactive_time', '', 'phpbb_inactive_time'),
|
||||
|
||||
|
@@ -1439,6 +1439,16 @@ function phpbb_avatar_type($type)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Just undos the replacing of '<' and '>'
|
||||
*/
|
||||
function phpbb_smilie_html_decode($code)
|
||||
{
|
||||
$code = str_replace('<', '<', $code);
|
||||
return str_replace('>', '>', $code);
|
||||
}
|
||||
|
||||
/**
|
||||
* Transfer avatars, copying the image if it was uploaded
|
||||
*/
|
||||
|
Reference in New Issue
Block a user