修改typecho文章排序

其他 575

文章最后更新时间为:2021 年 01 月 18 日 22:48:33

打开根目录下/var/Widget/Archive.php文件,
在源码1387-1393行处,
可以看到如下的文章排序代码:

/** 仅输出文章 */
$this->_countSql = clone $select;
$select->order('table.contents.created', Typecho_Db::SORT_DESC)
->page($this->_currentPage, $this->parameter->pageSize);
$this->query($select);
}
$select->order('table.contents.created', Typecho_Db::SORT_DESC)

改成

$select->order('table.contents.created', Typecho_Db::SORT_ASC)

可以倒叙

PHP script '/www/wwwroot/www.moxiao.cc/usr/plugins/TePass/theme/ucenter/component/signature.php' is protected by SourceGuardian and requires a SourceGuardian loader 'ixed.7.4.lin' to be installed.

1) Click here to download the required 'ixed.7.4.lin' loader from the SourceGuardian site
2) Install the loader to /www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902
3) Edit /www/server/php/74/etc/php.ini and add 'extension=ixed.7.4.lin' directive
4) Restart the web server