Example #1
0
 function convert_code_tag($text = "")
 {
     $text = preg_replace("#(<br[\\s]*\\/>)#is" . BX_UTF_PCRE_MODIFIER, "", $text);
     if ($this->allow["LOG_CODE"] == "N") {
         $text = str_replace(array("[nomodify]", "[/nomodify]"), array("", ""), $text);
         return $text;
     } else {
         return parent::convert_code_tag($text);
     }
 }