去评论
随县网_随县论坛_随州随县论坛网

Discuz X2.5 更新0518造成DIY 模块模板 [order=N]...[/order] 输出错误问题解决方法

┽→踏雪无痕╰
2012/06/01 09:27:39

找到以下文件
source\function\function_block.php在这个文件中的function block_template($bid)方法中最后面找到

  1. $template = preg_replace('/\s*\[(order\d+)=\w+\](.*?)\[\/\\1\]\s*/is', '', $template);
  2. $template = preg_replace('/\s*\[(index\d+)=\w+\](.*?)\[\/\\1\]\s*/is', '', $template);
修改为

  1. $template = preg_replace('/\s*\[(order\d*)=\w+\](.*?)\[\/\\1\]\s*/is', '', $template);
  2. $template = preg_replace('/\s*\[(index\d*)=\w+\](.*?)\[\/\\1\]\s*/is', '', $template);
简单的说就是把加号替换成*号就可以了


该贴已经同步到 ℡幽月╃冰心的微博
家装活动