码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2015-06-14 00:29:54      阅读:466      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!