diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2016-03-18 10:58:43 +0100 |
---|---|---|
committer | Jakub Senko <jakubsenko@gmail.com> | 2016-03-18 11:02:02 +0100 |
commit | 0f7d08c1214bc31936228488895e33f53446277e (patch) | |
tree | b81e95e1b25c650f869a2d1c78284671123c15d1 | |
parent | 46c79bbe901d31e93d321a8de46696d3ac277cd5 (diff) | |
download | forums-0f7d08c1214bc31936228488895e33f53446277e.tar forums-0f7d08c1214bc31936228488895e33f53446277e.tar.gz forums-0f7d08c1214bc31936228488895e33f53446277e.tar.bz2 forums-0f7d08c1214bc31936228488895e33f53446277e.tar.xz forums-0f7d08c1214bc31936228488895e33f53446277e.zip |
[ticket/9435] Add NUM_PREDEFINED_BBCODES constant
PHPBB3-9435
-rw-r--r-- | phpBB/includes/constants.php | 1 | ||||
-rw-r--r-- | phpBB/includes/functions_display.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/constants.php b/phpBB/includes/constants.php index 5c192d9676..28a2e0b166 100644 --- a/phpBB/includes/constants.php +++ b/phpBB/includes/constants.php @@ -182,6 +182,7 @@ define('BBCODE_UID_LEN', 8); // Number of core BBCodes define('NUM_CORE_BBCODES', 12); +define('NUM_PREDEFINED_BBCODES', 22); // BBCode IDs define('BBCODE_QUOTE_ID', 0); diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index afda10ebee..4726676e2d 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -1076,7 +1076,7 @@ function display_custom_bbcodes() global $db, $template, $user, $phpbb_dispatcher; // 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( 'SELECT' => 'b.bbcode_id, b.bbcode_tag, b.bbcode_helpline', |