This commit is contained in:
haoouba
2021-05-12 21:29:42 +08:00
parent a155178fa0
commit 2ae9560cfc
7 changed files with 5479 additions and 3 deletions

View File

@@ -44,7 +44,7 @@
$todayDate = date('m/d', $time);
$db = Typecho_Db::get();
$prefix = $db->getPrefix();
$sql = "SELECT * FROM `{$prefix}contents` WHERE DATE_FORMAT(FROM_UNIXTIME(created), '%m/%d') = '{$todayDate}' and created < {$time} and type = 'post' and status = 'publish' and (password is NULL or password = '') LIMIT 10";
$sql = "SELECT * FROM `{$prefix}contents` WHERE created < {$time} and FROM_UNIXTIME(created, '%m/%d') = '{$todayDate}' and type = 'post' and status = 'publish' and (password is NULL or password = '') LIMIT 10";
$result = $db->query($sql);
$historyTodaylist = [];
if ($result instanceof Traversable) {