这是一个bug,本周热门判断要求回复数不能为0,当然我们可以手工的修改
在/source/plugin/thread_list/thread_list.class.php中找到
- $sql = "SELECT t.*, f.name FROM ".DB::table('forum_thread')." t, ".DB::table('forum_forum')." f WHERE f.fid=t.fid $notshow $onlyshow $DigShow AND t.displayorder not IN(-1,-2) AND t.closed NOT LIKE 'moved|%' AND t.replies!=0 AND t.dateline>$ctime ORDER BY t.$hotdig DESC LIMIT 0, $thread_num";
复制代码
将其修改为- $sql = "SELECT t.*, f.name FROM ".DB::table('forum_thread')." t, ".DB::table('forum_forum')." f WHERE f.fid=t.fid $notshow $onlyshow $DigShow AND t.displayorder not IN(-1,-2) AND t.closed NOT LIKE 'moved|%' AND t.replies>=0 AND t.dateline>$ctime ORDER BY t.$hotdig DESC LIMIT 0, $thread_num";
复制代码 即可,修改前记得要备份哟。
http://www.wyao.in
|