mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 11:36:20 +05:30
Related post improvements
Switch using category for better performance and consistency
This commit is contained in:
parent
e702617cc4
commit
4bb8e39663
4 changed files with 65 additions and 58 deletions
|
|
@ -1667,7 +1667,7 @@ get('/admin/categories/:category', function ($category) {
|
|||
$perpage = 10;
|
||||
}
|
||||
|
||||
$posts = get_category($category, $page, $perpage);
|
||||
$posts = get_category($category, $page, $perpage, false);
|
||||
|
||||
$desc = get_category_info($category);
|
||||
|
||||
|
|
@ -1731,7 +1731,7 @@ get('/category/:category', function ($category) {
|
|||
$perpage = 10;
|
||||
}
|
||||
|
||||
$posts = get_category($category, $page, $perpage);
|
||||
$posts = get_category($category, $page, $perpage, false);
|
||||
|
||||
$desc = get_category_info($category);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue