From d7735d2587e68bab42fde8753ee733de76369f72 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 8 Feb 2004 18:02:17 +0000 Subject: inline attachment capability... git-svn-id: file:///svn/phpbb/trunk@4819 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/bbcode.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'phpBB/includes/bbcode.php') diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php index 67a211df0a..f2df2803b9 100644 --- a/phpBB/includes/bbcode.php +++ b/phpBB/includes/bbcode.php @@ -127,7 +127,7 @@ class bbcode } $bbcode_ids[] = $bbcode_id; - if ($bbcode_id > 11) + if ($bbcode_id > NUM_CORE_BBCODES) { $sql .= (($sql) ? ',' : '') . $bbcode_id; } @@ -253,6 +253,12 @@ class bbcode )); } break; + case 12: + $this->bbcode_cache[$bbcode_id] = array('preg' => array( + '#\[attachment=([0-9]+):$uid\]#' => $this->bbcode_tpl('inline_attachment_open', $bbcode_id), + '#\[\/attachment:$uid\]#' => $this->bbcode_tpl('inline_attachment_close', $bbcode_id) + )); + break; default: if (isset($rowset[$bbcode_id])) { -- cgit v1.2.1