首页 > Web开发 > 详细

Discuz 页面不能加载插件的原因和解决方法

时间:2015-06-14 00:29:10      阅读:590      评论:0      收藏:0      [点我收藏+]

 

 

模板中,
<!--{subtemplate common/headerF}-->
这样就不能加载

 

 

source/class/class_template.php里65行附近代码


$headeradd = $headerexists ? "hookscriptoutput(‘$basefile‘);" : ‘‘;

如果存在$headerexists,才会在模板里加载钩子代码。
而 $headerexists的定义如下
$headerexists = preg_match("/{(sub)?template\s+[\w\/]+?header\}/", $template);

<!--{subtemplate common/headerF}-->

Discuz 页面不能加载插件的原因和解决方法

原文:http://www.cnblogs.com/lingzhao/p/4574413.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!