mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17326] Replace language string for invalid icon names
PHPBB-17326
This commit is contained in:
parent
fe3750bfb2
commit
97728da9be
2 changed files with 3 additions and 3 deletions
|
@ -236,9 +236,9 @@ class acp_bbcodes
|
||||||
trigger_error($user->lang['BBCODE_HELPLINE_TOO_LONG'] . adm_back_link($this->u_action), E_USER_WARNING);
|
trigger_error($user->lang['BBCODE_HELPLINE_TOO_LONG'] . adm_back_link($this->u_action), E_USER_WARNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strlen($bbcode_font_icon) > 64 && preg_match('/^[\w-]+$/', $bbcode_font_icon))
|
if (strlen($bbcode_font_icon) > 64 || preg_match('/^[\w-]+$/', $bbcode_font_icon))
|
||||||
{
|
{
|
||||||
trigger_error($user->lang['BBCODE_FONT_ICON_TOO_LONG'] . adm_back_link($this->u_action), E_USER_WARNING);
|
trigger_error($user->lang['BBCODE_FONT_ICON_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -55,7 +55,7 @@ $lang = array_merge($lang, array(
|
||||||
'BBCODE_HELPLINE_TOO_LONG' => 'The help line you entered is too long.',
|
'BBCODE_HELPLINE_TOO_LONG' => 'The help line you entered is too long.',
|
||||||
'BBCODE_FONT_ICON' => 'BBCode icon',
|
'BBCODE_FONT_ICON' => 'BBCode icon',
|
||||||
'BBCODE_FONT_ICON_EXPLAIN' => 'Enter the name of a Font Awesome icon (without the fa prefix) to display instead of the BBCode name appearing on the button. %1$sClick here%2$s to view the list of available icons. Only solid style icons are supported.',
|
'BBCODE_FONT_ICON_EXPLAIN' => 'Enter the name of a Font Awesome icon (without the fa prefix) to display instead of the BBCode name appearing on the button. %1$sClick here%2$s to view the list of available icons. Only solid style icons are supported.',
|
||||||
'BBCODE_FONT_ICON_TOO_LONG' => 'The icon name you have entered is too long.',
|
'BBCODE_FONT_ICON_INVALID' => 'The icon name you have entered is too long.',
|
||||||
|
|
||||||
'BBCODE_INVALID_TAG_NAME' => 'The BBCode tag name that you selected already exists.',
|
'BBCODE_INVALID_TAG_NAME' => 'The BBCode tag name that you selected already exists.',
|
||||||
'BBCODE_INVALID' => 'Your BBCode is constructed in an invalid form.',
|
'BBCODE_INVALID' => 'Your BBCode is constructed in an invalid form.',
|
||||||
|
|
Loading…
Add table
Reference in a new issue