issue#21 - fixing catalog stickies
This commit is contained in:
parent
4759be6890
commit
6105a778b6
|
@ -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…
Reference in New Issue