Skip to content

Commit

Permalink
Merge pull request phpbb#6703 from marc1706/ticket/17379
Browse files Browse the repository at this point in the history
[ticket/17379] Use correct number of predefined BBCodes in posting editor
  • Loading branch information
marc1706 authored Aug 31, 2024
2 parents 25da671 + e3a6f3d commit 1bfe1d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion phpBB/adm/style/acp_posting_buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<!-- IF S_LINKS_ALLOWED -->
<input type="button" class="button2" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" title="{L_BBCODE_W_HELP}" />
<!-- ENDIF -->
<select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" title="{L_BBCODE_F_HELP}">
<select name="addbbcode18" onchange="bbfontstyle('[size=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/size]');this.form.addbbcode18.selectedIndex = 2;" title="{L_BBCODE_F_HELP}">
<option value="50">{L_FONT_TINY}</option>
<option value="85">{L_FONT_SMALL}</option>
<option value="100" selected="selected">{L_FONT_NORMAL}</option>
Expand Down
2 changes: 1 addition & 1 deletion phpBB/includes/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@

// Number of core BBCodes
define('NUM_CORE_BBCODES', 12);
define('NUM_PREDEFINED_BBCODES', 22);
define('NUM_PREDEFINED_BBCODES', 20);

// BBCode IDs
define('BBCODE_ID_QUOTE', 0);
Expand Down
2 changes: 1 addition & 1 deletion phpBB/styles/prosilver/template/posting_buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<button type="button" class="button button-icon-only bbcode-color" name="bbpalette" id="bbpalette" value="{L_FONT_COLOR}" onclick="change_palette();" title="{L_BBCODE_S_HELP}">
{{ Icon('font', 'droplet', '', true, 'fas c-button-icon') }}
</button>
<select name="addbbcode20" class="bbcode-size" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" title="{L_BBCODE_F_HELP}">
<select name="addbbcode18" class="bbcode-size" onchange="bbfontstyle('[size=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/size]');this.form.addbbcode18.selectedIndex = 2;" title="{L_BBCODE_F_HELP}">
<option value="50">{L_FONT_TINY}</option>
<option value="85">{L_FONT_SMALL}</option>
<option value="100" selected="selected">{L_FONT_NORMAL}</option>
Expand Down

0 comments on commit 1bfe1d0

Please sign in to comment.