1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-02 16:04:36 +02:00

[ticket/7778] BBCode single limit

There are currently two hard limits for the number of BBCodes
allowed. One is enforced by the type of the `bbcode_id` column,
the other by an hard limit in `acp/acp_bbcode.php`. However this
limit can never be reached due to the size of the database column.

Suggested fix involves adding a new constant to define the max.
number of BBCodes (as with smilies) and chaning the database
column from a tinyint to a smallint to actually allow 1511 BBCodes

PHPBB3-7778
This commit is contained in:
Erik Frèrejean
2011-01-11 13:48:13 +01:00
committed by Oleg Pudeyev
parent 510248da28
commit a7bc76d246
4 changed files with 14 additions and 4 deletions

View File

@ -926,7 +926,7 @@ function get_schema_struct()
$schema_data['phpbb_bbcodes'] = array(
'COLUMNS' => array(
'bbcode_id' => array('TINT:3', 0),
'bbcode_id' => array('USINT', 0),
'bbcode_tag' => array('VCHAR:16', ''),
'bbcode_helpline' => array('VCHAR_UNI', ''),
'display_on_posting' => array('BOOL', 0),