修改取附件的默认顺序,更符合通常需要
This commit is contained in:
@@ -42,7 +42,7 @@ class Widget_Contents_Attachment_Related extends Widget_Abstract_Contents
|
||||
$select->where('table.contents.parent = ?', $this->parameter->parentId);
|
||||
|
||||
/** 提交查询 */
|
||||
$select->order('table.contents.created', Typecho_Db::SORT_DESC);
|
||||
$select->order('table.contents.created', Typecho_Db::SORT_ASC);
|
||||
|
||||
if ($this->parameter->limit > 0) {
|
||||
$select->limit($this->parameter->limit);
|
||||
|
||||
Reference in New Issue
Block a user