From 1f5b276d1982a08dc9ab240fe92329561ec72155 Mon Sep 17 00:00:00 2001 From: joyqi Date: Fri, 28 Feb 2014 23:01:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=88=86=E7=B1=BB=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- var/Widget/Abstract/Contents.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/var/Widget/Abstract/Contents.php b/var/Widget/Abstract/Contents.php index 9236ed81..0968dcd0 100644 --- a/var/Widget/Abstract/Contents.php +++ b/var/Widget/Abstract/Contents.php @@ -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();