Browse Source

Fix sticky posts to top of catalog

main
Barbara Pitt 3 years ago
committed by discomrade
parent
commit
22246a2961
  1. 2
      templates/themes/catalog/theme.php

2
templates/themes/catalog/theme.php

@ -170,7 +170,7 @@
$threads = $this->threadsCache[$board_name];
} else {
$sql = $this->buildThreadsQuery($board_name);
$query = query($sql . ' ORDER BY `bump` DESC') or error(db_error());
$query = query($sql . ' ORDER BY `sticky` DESC,`bump` DESC') or error(db_error());
$threads = $query->fetchAll(PDO::FETCH_ASSOC);
// Save for posterity
$this->threadsCache[$board_name] = $threads;

Loading…
Cancel
Save