This commit is contained in:
joyqi 2023-12-04 17:56:17 +08:00
parent a2c1fbf4a8
commit c9aba55949
4 changed files with 5 additions and 3 deletions

View File

@ -236,6 +236,8 @@ namespace Typecho {
} elseif ($exception instanceof \Typecho\Db\Adapter\SQLException) {
$message = 'Database Query Error';
}
} else {
$message = 'Server Error';
}
/** 设置http code */

View File

@ -76,7 +76,7 @@ class Admin extends Comments
{
$select = $this->select();
$this->parameter->setDefault('pageSize=20');
$this->currentPage = $this->request->get('page', 1);
$this->currentPage = $this->request->filter('int')->get('page', 1);
/** 过滤标题 */
if (null != ($keywords = $this->request->filter('search')->get('keywords'))) {

View File

@ -35,7 +35,7 @@ trait AdminTrait
protected function initPage()
{
$this->parameter->setDefault('pageSize=20');
$this->currentPage = $this->request->get('page', 1);
$this->currentPage = $this->request->filter('int')->get('page', 1);
}
/**

View File

@ -54,7 +54,7 @@ class Admin extends Users
{
$this->parameter->setDefault('pageSize=20');
$select = $this->select();
$this->currentPage = $this->request->get('page', 1);
$this->currentPage = $this->request->filter('int')->get('page', 1);
/** 过滤标题 */
if (null != ($keywords = $this->request->get('keywords'))) {