From c2725b441cf40c7f025bbe745e0180223552e1b6 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 12 Aug 2024 20:57:23 +0100 Subject: [PATCH] [ticket/17326] Change column length of icon and update ACP language PHPBB-17326 --- phpBB/adm/style/acp_bbcodes.html | 2 +- phpBB/includes/acp/acp_bbcodes.php | 13 +++++++------ phpBB/language/en/acp/posting.php | 2 +- .../db/migration/data/v400/add_bbcode_font_icon.php | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/phpBB/adm/style/acp_bbcodes.html b/phpBB/adm/style/acp_bbcodes.html index 8bc0b5fdc2..af957ed372 100644 --- a/phpBB/adm/style/acp_bbcodes.html +++ b/phpBB/adm/style/acp_bbcodes.html @@ -50,7 +50,7 @@
{{ lang('APPEARANCE') }}
-

{{ lang('BBCODE_FONT_ICON_EXPLAIN') }}
+

{L_BBCODE_FONT_ICON_EXPLAIN}
{{ Icon('font', BBCODE_FONT_ICON, '', false, '', {'id':'bbcode_icon_preview'}) }} diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php index 66ef3627ab..e28c1f6155 100644 --- a/phpBB/includes/acp/acp_bbcodes.php +++ b/phpBB/includes/acp/acp_bbcodes.php @@ -104,12 +104,13 @@ class acp_bbcodes 'U_BACK' => $this->u_action, 'U_ACTION' => $this->u_action . '&action=' . (($action == 'add') ? 'create' : 'modify') . (($bbcode_id) ? "&bbcode=$bbcode_id" : ''), - 'L_BBCODE_USAGE_EXPLAIN'=> sprintf($user->lang['BBCODE_USAGE_EXPLAIN'], '', ''), - 'BBCODE_MATCH' => $bbcode_match, - 'BBCODE_TPL' => $bbcode_tpl, - 'BBCODE_HELPLINE' => $bbcode_helpline, - 'BBCODE_FONT_ICON' => $bbcode_font_icon, - 'DISPLAY_ON_POSTING' => $display_on_posting, + 'L_BBCODE_USAGE_EXPLAIN' => sprintf($user->lang['BBCODE_USAGE_EXPLAIN'], '', ''), + 'L_BBCODE_FONT_ICON_EXPLAIN' => sprintf($user->lang['BBCODE_USAGE_EXPLAIN'], '', ''), + 'BBCODE_MATCH' => $bbcode_match, + 'BBCODE_TPL' => $bbcode_tpl, + 'BBCODE_HELPLINE' => $bbcode_helpline, + 'BBCODE_FONT_ICON' => $bbcode_font_icon, + 'DISPLAY_ON_POSTING' => $display_on_posting, ); $bbcode_tokens = array('TEXT', 'SIMPLETEXT', 'INTTEXT', 'IDENTIFIER', 'NUMBER', 'EMAIL', 'URL', 'LOCAL_URL', 'RELATIVE_URL', 'COLOR'); diff --git a/phpBB/language/en/acp/posting.php b/phpBB/language/en/acp/posting.php index c219b1a46a..b03a83956f 100644 --- a/phpBB/language/en/acp/posting.php +++ b/phpBB/language/en/acp/posting.php @@ -54,7 +54,7 @@ $lang = array_merge($lang, array( 'BBCODE_HELPLINE_TEXT' => 'Help line text', 'BBCODE_HELPLINE_TOO_LONG' => 'The help line you entered is too long.', '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. Click here to view the list of available icons.', + '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_INVALID_TAG_NAME' => 'The BBCode tag name that you selected already exists.', diff --git a/phpBB/phpbb/db/migration/data/v400/add_bbcode_font_icon.php b/phpBB/phpbb/db/migration/data/v400/add_bbcode_font_icon.php index 1a580dde8c..183b5d91db 100644 --- a/phpBB/phpbb/db/migration/data/v400/add_bbcode_font_icon.php +++ b/phpBB/phpbb/db/migration/data/v400/add_bbcode_font_icon.php @@ -32,7 +32,7 @@ class add_bbcode_font_icon extends \phpbb\db\migration\migration return [ 'add_columns' => [ $this->table_prefix . 'bbcodes' => [ - 'bbcode_font_icon' => ['VCHAR:50', ''], + 'bbcode_font_icon' => ['VCHAR:64', ''], ], ], ];