1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-20 17:48:46 +01:00

Board creation date in listBoards()

This commit is contained in:
8chan Admin 2014-02-15 03:02:05 +00:00
parent 16902e0efd
commit 3c6d8d285b

View File

@ -573,7 +573,7 @@ function listBoards() {
if ($config['cache']['enabled'] && ($boards = cache::get('all_boards'))) if ($config['cache']['enabled'] && ($boards = cache::get('all_boards')))
return $boards; return $boards;
$query = query("SELECT * FROM ``boards`` ORDER BY `uri`") or error(db_error()); $query = query("SELECT * FROM ``boards`` LEFT JOIN ``board_create`` ON ``boards``.`uri` = ``board_create``.`uri` ORDER BY ``boards``.`uri`") or error(db_error());
$boards = $query->fetchAll(); $boards = $query->fetchAll();
if ($config['cache']['enabled']) if ($config['cache']['enabled'])