Browse Source

improve pagination support

master
filesite 4 months ago
parent
commit
c557154972
  1. 2
      themes/beauty/controller/ListController.php
  2. 2
      themes/beauty/controller/SiteController.php

2
themes/beauty/controller/ListController.php

@ -136,6 +136,8 @@ Class ListController extends Controller {
//翻页支持 //翻页支持
$page = $this->get('page', 1); $page = $this->get('page', 1);
$pageSize = $this->get('limit', 24); $pageSize = $this->get('limit', 24);
$page = (int)$page;
$pageSize = (int)$pageSize;
//底部版权申明配置支持 //底部版权申明配置支持

2
themes/beauty/controller/SiteController.php

@ -122,6 +122,8 @@ Class SiteController extends Controller {
//翻页支持 //翻页支持
$page = $this->get('page', 1); $page = $this->get('page', 1);
$pageSize = $this->get('limit', 24); $pageSize = $this->get('limit', 24);
$page = (int)$page;
$pageSize = (int)$pageSize;
$pageTitle = !empty($titles) ? $titles[0]['name'] : "FileSite.io"; $pageTitle = !empty($titles) ? $titles[0]['name'] : "FileSite.io";
if (!empty($readmeFile['title'])) { if (!empty($readmeFile['title'])) {

Loading…
Cancel
Save