forked from leftypol/leftypol
issue#21 - fixing catalog stickies
This commit is contained in:
parent
bb7f9a29c9
commit
430c5e0766
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@
|
||||||
print_err("Catalog.build calling buildThreadsQuery. boardname: $board_name");
|
print_err("Catalog.build calling buildThreadsQuery. boardname: $board_name");
|
||||||
$sql = $this->buildThreadsQuery($board_name);
|
$sql = $this->buildThreadsQuery($board_name);
|
||||||
print_err("Catalog.build calling buildThreadsQuery ok");
|
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);
|
$threads = $query->fetchAll(PDO::FETCH_ASSOC);
|
||||||
print_err("Catalog.build has threads");
|
print_err("Catalog.build has threads");
|
||||||
// Save for posterity
|
// Save for posterity
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue