From 811bf0e16b61b1aba262f6113e3ba95db2fbcd00 Mon Sep 17 00:00:00 2001 From: shish Date: Sun, 20 Apr 2008 15:29:40 +0000 Subject: [PATCH] bbcode list git-svn-id: file:///home/shish/svn/shimmie2/trunk@830 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/bbcode/main.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/bbcode/main.php b/ext/bbcode/main.php index 33165a39..05c365b5 100644 --- a/ext/bbcode/main.php +++ b/ext/bbcode/main.php @@ -26,6 +26,7 @@ class BBCode extends Extension { $text = preg_replace("/\[h2\](.*?)\[\/h2\]/s", "

\\1

", $text); $text = preg_replace("/\[h3\](.*?)\[\/h3\]/s", "

\\1

", $text); $text = preg_replace("/\[h4\](.*?)\[\/h4\]/s", "

\\1

", $text); + $text = preg_replace("/\[list\](.*?)\[\/list\]/s", "", $text); $text = preg_replace("/\[ul\](.*?)\[\/ul\]/s", "", $text); $text = preg_replace("/\[ol\](.*?)\[\/ol\]/s", "
    \\1
", $text); $text = preg_replace("/\[li\](.*?)\[\/li\]/s", "
  • \\1
  • ", $text); @@ -50,6 +51,7 @@ class BBCode extends Extension { $text = preg_replace("/\[h2\](.*?)\[\/h2\]/s", "\\1", $text); $text = preg_replace("/\[h3\](.*?)\[\/h3\]/s", "\\1", $text); $text = preg_replace("/\[h4\](.*?)\[\/h4\]/s", "\\1", $text); + $text = preg_replace("/\[list\](.*?)\[\/list\]/s", "\\1", $text); $text = preg_replace("/\[ul\](.*?)\[\/ul\]/s", "\\1", $text); $text = preg_replace("/\[ol\](.*?)\[\/ol\]/s", "\\1", $text); $text = preg_replace("/\[li\](.*?)\[\/li\]/s", "\\1", $text);