function codeConv($text, $xcode = 1, $image = 1) { if ($xcode != 0 && !defined('XOOPS_CUBE_LEGACY')) { // bug fix $text = preg_replace_callback("/\\[code](.*)\\[\\/code\\]/sU", array($this, 'myCodeSanitizer'), $text); } else { $text = parent::codeConv($text, $xcode, $image); } return $text; }