mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
3d8218e9d6
2 changed files with 8 additions and 0 deletions
|
@ -986,6 +986,13 @@ class acp_forums
|
||||||
$errors[] = $user->lang['FORUM_NAME_EMPTY'];
|
$errors[] = $user->lang['FORUM_NAME_EMPTY'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// No Emojis
|
||||||
|
if (preg_match_all('/[\x{10000}-\x{10FFFF}]/u', $forum_data_ary['forum_name'], $matches))
|
||||||
|
{
|
||||||
|
$character_list = implode('<br>', $matches[0]);
|
||||||
|
$errors[] = $user->lang('FORUM_NAME_EMOJI', $character_list);
|
||||||
|
}
|
||||||
|
|
||||||
if (utf8_strlen($forum_data_ary['forum_desc']) > 4000)
|
if (utf8_strlen($forum_data_ary['forum_desc']) > 4000)
|
||||||
{
|
{
|
||||||
$errors[] = $user->lang['FORUM_DESC_TOO_LONG'];
|
$errors[] = $user->lang['FORUM_DESC_TOO_LONG'];
|
||||||
|
|
|
@ -97,6 +97,7 @@ $lang = array_merge($lang, array(
|
||||||
'FORUM_LINK_TRACK_EXPLAIN' => 'Records the number of times a forum link was clicked.',
|
'FORUM_LINK_TRACK_EXPLAIN' => 'Records the number of times a forum link was clicked.',
|
||||||
'FORUM_NAME' => 'Forum name',
|
'FORUM_NAME' => 'Forum name',
|
||||||
'FORUM_NAME_EMPTY' => 'You must enter a name for this forum.',
|
'FORUM_NAME_EMPTY' => 'You must enter a name for this forum.',
|
||||||
|
'FORUM_NAME_EMOJI' => 'The forum name you entered is invalid.<br>It contains the following unsupported characters:<br>%s',
|
||||||
'FORUM_PARENT' => 'Parent forum',
|
'FORUM_PARENT' => 'Parent forum',
|
||||||
'FORUM_PASSWORD' => 'Forum password',
|
'FORUM_PASSWORD' => 'Forum password',
|
||||||
'FORUM_PASSWORD_CONFIRM' => 'Confirm forum password',
|
'FORUM_PASSWORD_CONFIRM' => 'Confirm forum password',
|
||||||
|
|
Loading…
Add table
Reference in a new issue