fix table bbcode
This commit is contained in:
parent
3c477ea8d6
commit
c6b9e44353
@ -433,7 +433,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
|
||||
if (strpos($Text,'[tr]') !== false) {
|
||||
$Text = preg_replace("/\[tr\](.*?)\[\/tr\]/sm", '<tr>$1</tr>' ,$Text);
|
||||
}
|
||||
if (strpos($Text,'[table]') !== false) {
|
||||
if (strpos($Text,'[/table]') !== false) {
|
||||
$Text = preg_replace("/\[table\](.*?)\[\/table\]/sm", '<table>$1</table>' ,$Text);
|
||||
$Text = preg_replace("/\[table border=1\](.*?)\[\/table\]/sm", '<table border="1" >$1</table>' ,$Text);
|
||||
$Text = preg_replace("/\[table border=0\](.*?)\[\/table\]/sm", '<table border="0" >$1</table>' ,$Text);
|
||||
|
@ -1 +1 @@
|
||||
2014-01-08.551
|
||||
2014-01-09.552
|
||||
|
Reference in New Issue
Block a user