更新 function_discuzcode.php
This commit is contained in:
parent
11cea8f49a
commit
5d32286fd1
|
@ -247,10 +247,6 @@ function discuzcode($message, $smileyoff = false, $bbcodeoff = false, $htmlon =
|
|||
if($parsetype != 1 && strpos($msglower, '[swf]') !== FALSE) {
|
||||
$message = preg_replace_callback("/\[swf\]\s*([^\[\<\r\n]+?)\s*\[\/swf\]/is", 'discuzcode_callback_bbcodeurl_1', $message);
|
||||
}
|
||||
|
||||
/*if(defined('IN_MOBILE') && !defined('TPL_DEFAULT') && !defined('IN_MOBILE_API')) {
|
||||
$allowimgcode = false;
|
||||
}*/
|
||||
$attrsrc = !IS_ROBOT && $lazyload ? 'file' : 'src';
|
||||
if(strpos($msglower, '[/img]') !== FALSE) {
|
||||
$message = preg_replace_callback("/\[img\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/is", create_function('$matches', 'return '.intval($allowimgcode).' ? parseimg(0, 0, $matches[1], '.intval($lazyload).', '.intval($pid).', \'onmouseover="img_onmouseoverfunc(this)" \'.('.intval($lazyload).' ? \'lazyloadthumb="1"\' : \'onload="thumbImg(this)"\')) : ('.intval($allowbbcode).' ? (!defined(\'IN_MOBILE\') ? bbcodeurl($matches[1], \'<a href="{url}" target="_blank">{url}</a>\') : bbcodeurl($matches[1], \'\')) : bbcodeurl($matches[1], \'{url}\'));'), $message);
|
||||
|
|
Loading…
Reference in New Issue