@@ 191-198 (lines=8) @@ | ||
188 | ||
189 | /* approve a single blog or a list blogs */ |
|
190 | // no break |
|
191 | case 'approve': |
|
192 | if (!is_array($blog_id)) { |
|
193 | $blog_id = [$blog_id]; |
|
194 | } |
|
195 | $criteria = new \Criteria('blog_id', '(' . implode(',', $blog_id) . ')', 'IN'); |
|
196 | $blogHandler->updateAll('blog_status', 1, $criteria, true); |
|
197 | $message = planet_constant('AM_DBUPDATED'); |
|
198 | redirect_header('admin.blog.php?category=' . $category_id . '&start=' . $start, 2, $message); |
|
199 | ||
200 | /* mark a single blog or a list blogs as featured */ |
|
201 | // no break |
|
@@ 202-209 (lines=8) @@ | ||
199 | ||
200 | /* mark a single blog or a list blogs as featured */ |
|
201 | // no break |
|
202 | case 'feature': |
|
203 | if (!is_array($blog_id)) { |
|
204 | $blog_id = [$blog_id]; |
|
205 | } |
|
206 | $criteria = new \Criteria('blog_id', '(' . implode(',', $blog_id) . ')', 'IN'); |
|
207 | $blogHandler->updateAll('blog_status', 2, $criteria, true); |
|
208 | $message = planet_constant('AM_DBUPDATED'); |
|
209 | redirect_header('admin.blog.php?category=' . $category_id . '&start=' . $start, 2, $message); |
|
210 | ||
211 | /* edit a single blog */ |
|
212 | // no break |