|
@ -170,7 +170,7 @@ |
|
|
$threads = $this->threadsCache[$board_name]; |
|
|
$threads = $this->threadsCache[$board_name]; |
|
|
} else { |
|
|
} else { |
|
|
$sql = $this->buildThreadsQuery($board_name); |
|
|
$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); |
|
|
$threads = $query->fetchAll(PDO::FETCH_ASSOC); |
|
|
// Save for posterity |
|
|
// Save for posterity |
|
|
$this->threadsCache[$board_name] = $threads; |
|
|
$this->threadsCache[$board_name] = $threads; |
|
|