mirror of
https://github.com/typecho/typecho.git
synced 2025-03-18 08:59:40 +01:00
修正分类输出错误
This commit is contained in:
parent
7b52118457
commit
1f5b276d19
@ -616,14 +616,12 @@ class Widget_Abstract_Contents extends Widget_Abstract
|
||||
public function filter(array $value)
|
||||
{
|
||||
/** 取出所有分类 */
|
||||
if ('post' == $value['type']) {
|
||||
$value['categories'] = $this->db->fetchAll($this->db
|
||||
$value['categories'] = $this->db->fetchAll($this->db
|
||||
->select()->from('table.metas')
|
||||
->join('table.relationships', 'table.relationships.mid = table.metas.mid')
|
||||
->where('table.relationships.cid = ?', $value['cid'])
|
||||
->where('table.metas.type = ?', 'category')
|
||||
->order('table.metas.order', Typecho_Db::SORT_ASC), array($this->widget('Widget_Metas_Category_List'), 'filter'));
|
||||
}
|
||||
$value['category'] = NULL;
|
||||
$value['directory'] = array();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user