Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

对于Discuz! X2.0中数据调用BUG,block_template方法出错

[复制链接]
yhrxl 发表于 2012-12-5 11:52:53 | 显示全部楼层 |阅读模式
程序补丁升级,从Discuz! X2 Release 20110817升级到Discuz! X2 Release 20120628
出现页面用数据调用的地方出现错位,

结果查原程序时发现 source/function/function_block.php 文件中的 block_template 不对。
位置在435,436行
原程序如下:
    $template = preg_replace('/\s*\[(order\d+)=\w+\](.*?)\[\/\\1\]\s*/is', '', $template);
    $template = preg_replace('/\s*\[(index\d+})=\w+\](.*?)\[\/\\1\]\s*/is', '', $template);
修改后如下:
    $template = preg_replace('/\s*\[(order\d*)=\w+\](.*?)\[\/\\1\]\s*/is', '', $template);
    $template = preg_replace('/\s*\[(index\d*)=\w+\](.*?)\[\/\\1\]\s*/is', '', $template);

如有发现和我一样的错误信息,请及时修改


m.king 发表于 2012-12-6 17:05:55 | 显示全部楼层
出现页面用数据调用的地方出现错位?
怎么错位了 能否详细描述下啊?
回复

使用道具 举报

m.king 发表于 2012-12-13 10:43:52 | 显示全部楼层
该问题更新补丁包可以解决。
回复

使用道具 举报

 楼主| yhrxl 发表于 2012-12-13 15:36:22 | 显示全部楼层
{:soso_e100:}{:soso_e101:}{:soso_e178:}{:soso_e100:}{:soso_e101:}{:soso_e178:}{:soso_e100:}{:soso_e101:}{:soso_e178:}{:soso_e100:}{:soso_e101:}{:soso_e178:}{:soso_e100:}{:soso_e101:}{:soso_e178:}{:soso_e100:}{:soso_e101:}{:soso_e178:}
回复

使用道具 举报

 楼主| yhrxl 发表于 2012-12-13 15:44:07 | 显示全部楼层
:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-3-2 02:13 , Processed in 0.031023 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表