@@ 91-99 (lines=9) @@ | ||
88 | $criteria = new CriteriaCompo(); |
|
89 | $article_prefix = ''; |
|
90 | /* Specific category */ |
|
91 | if ($category_id > 0) { |
|
92 | $category_obj = $categoryHandler->get($category_id); |
|
93 | $criteria->add(new Criteria('bc.cat_id', $category_id)); |
|
94 | $uid = 0; |
|
95 | $blog_id = 0; |
|
96 | $category_data = ['id' => $category_id, 'title' => $category_obj->getVar('cat_title')]; |
|
97 | $query_type = 'category'; |
|
98 | $article_prefix = 'a.'; |
|
99 | } |
|
100 | /* Specific blog */ |
|
101 | if ($blog_id > 0) { |
|
102 | $blog_obj = $blogHandler->get($blog_id); |
@@ 84-92 (lines=9) @@ | ||
81 | $criteria = new CriteriaCompo(); |
|
82 | $blog_prefix = ''; |
|
83 | /* Specific category */ |
|
84 | if ($category_id > 0) { |
|
85 | $category_obj = $categoryHandler->get($category_id); |
|
86 | $criteria->add(new Criteria('bc.cat_id', $category_id)); |
|
87 | $uid = 0; |
|
88 | $blog_id = 0; |
|
89 | $category_data = ['id' => $category_id, 'title' => $category_obj->getVar('cat_title')]; |
|
90 | $query_type = 'category'; |
|
91 | $blog_prefix = 'b.'; |
|
92 | } |
|
93 | ||
94 | /* User bookmarks(favorites) */ |
|
95 | if ($uid > 0) { |