Browse Source

Merge pull request #363 from simonlnu/master

fix typo and syntax error in include/bbcode.php
pull/364/merge
Simon 9 years ago
parent
commit
c291581e13
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/bbcode.php

+ 1
- 1
include/bbcode.php View File

@ -162,7 +162,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
// handle nested lists
$endlessloop = 0;
while ((strpos($Text, "[/list]") !== false) && (strpos($Text, "[list") !== false)
while ((strpos($Text, "[/list]") !== false) && (strpos($Text, "[list]") !== false) &&
(strpos($Text, "[/ol]") !== false) && (strpos($Text, "[ol]") !== false) &&
(strpos($Text, "[/ul]") !== false) && (strpos($Text, "[ul]") !== false) && (++$endlessloop < 20)) {
$Text = preg_replace("/\[list\](.*?)\[\/list\]/ism", '<ul class="listbullet" style="list-style-type: circle;">$1</ul>' ,$Text);


Loading…
Cancel
Save