Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
czaks committed Mar 10, 2015
1 parent e999955 commit 4aa1d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/themes/sitemap/theme.php
Expand Up @@ -26,7 +26,7 @@ function sitemap_build($action, $settings, $board) {
$threads = array();

foreach ($boards as $board) {
$query = query(sprintf("SELECT `id`, `slug`, (SELECT `time` FROM ``posts_%s`` WHERE `thread` = `thread_id` OR `id` = `thread_id` ORDER BY `time` DESC LIMIT 1) AS `lastmod` FROM ``posts_%s`` WHERE `thread` IS NULL", $board, $board)) or error(db_error());
$query = query(sprintf("SELECT `id`, `id` AS `thread_id`, `slug`, (SELECT `time` FROM ``posts_%s`` WHERE `thread` = `thread_id` OR `id` = `thread_id` ORDER BY `time` DESC LIMIT 1) AS `lastmod` FROM ``posts_%s`` WHERE `thread` IS NULL", $board, $board)) or error(db_error());
$threads[$board] = $query->fetchAll(PDO::FETCH_ASSOC);
}

Expand Down

0 comments on commit 4aa1d38

Please sign in to comment.