修改取附件的默认顺序,更符合通常需要

This commit is contained in:
祁宁
2014-04-09 11:53:37 +08:00
parent 82db829888
commit 542620a9af
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -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);