@@ 82-90 (lines=9) @@ | ||
79 | $criteria = new CriteriaCompo(); |
|
80 | $blog_prefix = ''; |
|
81 | /* Specific category */ |
|
82 | if ($category_id > 0) { |
|
83 | $category_obj = $category_handler->get($category_id); |
|
84 | $criteria->add(new Criteria('bc.cat_id', $category_id)); |
|
85 | $uid = 0; |
|
86 | $blog_id = 0; |
|
87 | $category_data = array('id' => $category_id, 'title' => $category_obj->getVar('cat_title')); |
|
88 | $query_type = 'category'; |
|
89 | $blog_prefix = 'b.'; |
|
90 | } |
|
91 | ||
92 | /* User bookmarks(favorites) */ |
|
93 | if ($uid > 0) { |
@@ 98-106 (lines=9) @@ | ||
95 | $criteria = new CriteriaCompo(); |
|
96 | $article_prefix = ''; |
|
97 | /* Specific category */ |
|
98 | if ($category_id > 0) { |
|
99 | $category_obj = $category_handler->get($category_id); |
|
100 | $criteria->add(new Criteria('bc.cat_id', $category_id)); |
|
101 | $uid = 0; |
|
102 | $blog_id = 0; |
|
103 | $category_data = array('id' => $category_id, 'title' => $category_obj->getVar('cat_title')); |
|
104 | $query_type = 'category'; |
|
105 | $article_prefix = 'a.'; |
|
106 | } |
|
107 | /* Specific blog */ |
|
108 | if ($blog_id > 0) { |
|
109 | $blog_obj =& $blog_handler->get($blog_id); |