]> git.mxchange.org Git - friendica.git/commitdiff
Added support for [ol] standard ordered list bbcode.
authorAbinoam P. Marques Jr <abinoam@gmail.com>
Sun, 12 Feb 2012 20:00:23 +0000 (12:00 -0800)
committerAbinoam P. Marques Jr <abinoam@gmail.com>
Sun, 12 Feb 2012 20:00:23 +0000 (12:00 -0800)
include/bbcode.php

index 5d9665be566b6d70854684a9e353a67caa9c7783..7133a1a34d256206856a58f16070a2285d6d02d6 100755 (executable)
@@ -126,6 +126,8 @@ function bbcode($Text,$preserve_nl = false) {
 ,$Text);
        $Text = preg_replace("/\[list=\](.*?)\[\/list\]/ism", '<ul class="listnone" style="list-style-type: none;">$1</ul>' ,$Text);
        $Text = preg_replace("/\[list=1\](.*?)\[\/list\]/ism", '<ul class="listdecimal" style="list-style-type: decimal;">$1</ul>' ,$Text);
+       $Text = preg_replace("/\[ol\](.*?)\[\/ol\]/ism", '<ul class="listdecimal" style="list-style-type: decimal;">$1</ul>' 
+,$Text);
        $Text = preg_replace("/\[list=((?-i)i)\](.*?)\[\/list\]/ism",'<ul class="listlowerroman" style="list-style-type: 
 lower-roman;">$2</ul>' ,$Text);
        $Text = preg_replace("/\[list=((?-i)I)\](.*?)\[\/list\]/ism", '<ul class="listupperroman" style="list-style-type: