dedecms系统channel指定id后,无效当前样式current

2017-04-20 23:12:37 dedecms
解决办法:

修改include/taglib/channel.lib.php
查找:

if( ($row['id']==$typeid || ($topid==$row['id'] && $type=='top') ) && $currentstyle!='' )

改成

if( ( $row['id']== $refObj->TypeLink->TypeInfos['id'] || ($topid==$row['id'] && $type=='top') ) && $currentstyle!='' )