mirror of
https://github.com/typecho/typecho.git
synced 2025-04-22 10:43:57 +02:00
parent
a2c1fbf4a8
commit
c9aba55949
@ -236,6 +236,8 @@ namespace Typecho {
|
||||
} elseif ($exception instanceof \Typecho\Db\Adapter\SQLException) {
|
||||
$message = 'Database Query Error';
|
||||
}
|
||||
} else {
|
||||
$message = 'Server Error';
|
||||
}
|
||||
|
||||
/** 设置http code */
|
||||
|
@ -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'))) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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'))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user