Browse Source
Merge pull request #30 from Barbara-Pitt/config
issue#21 - fixing catalog stickies
gitIgnore1
towards-a-new-leftypol
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
templates/themes/catalog/theme.php
|
|
@ -307,7 +307,7 @@ |
|
|
|
print_err("Catalog.build calling buildThreadsQuery. boardname: $board_name"); |
|
|
|
$sql = $this->buildThreadsQuery($board_name); |
|
|
|
print_err("Catalog.build calling buildThreadsQuery ok"); |
|
|
|
$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); |
|
|
|
print_err("Catalog.build has threads"); |
|
|
|
// Save for posterity |
|
|
|