mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/9435] Add NUM_PREDEFINED_BBCODES constant
PHPBB3-9435
This commit is contained in:
parent
46c79bbe90
commit
0f7d08c121
2 changed files with 2 additions and 1 deletions
|
@ -182,6 +182,7 @@ define('BBCODE_UID_LEN', 8);
|
||||||
|
|
||||||
// Number of core BBCodes
|
// Number of core BBCodes
|
||||||
define('NUM_CORE_BBCODES', 12);
|
define('NUM_CORE_BBCODES', 12);
|
||||||
|
define('NUM_PREDEFINED_BBCODES', 22);
|
||||||
|
|
||||||
// BBCode IDs
|
// BBCode IDs
|
||||||
define('BBCODE_QUOTE_ID', 0);
|
define('BBCODE_QUOTE_ID', 0);
|
||||||
|
|
|
@ -1076,7 +1076,7 @@ function display_custom_bbcodes()
|
||||||
global $db, $template, $user, $phpbb_dispatcher;
|
global $db, $template, $user, $phpbb_dispatcher;
|
||||||
|
|
||||||
// Start counting from 22 for the bbcode ids (every bbcode takes two ids - opening/closing)
|
// Start counting from 22 for the bbcode ids (every bbcode takes two ids - opening/closing)
|
||||||
$num_predefined_bbcodes = 22;
|
$num_predefined_bbcodes = NUM_PREDEFINED_BBCODES;
|
||||||
|
|
||||||
$sql_ary = array(
|
$sql_ary = array(
|
||||||
'SELECT' => 'b.bbcode_id, b.bbcode_tag, b.bbcode_helpline',
|
'SELECT' => 'b.bbcode_id, b.bbcode_tag, b.bbcode_helpline',
|
||||||
|
|
Loading…
Add table
Reference in a new issue