Skip to content
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.

分页时只获取ACTION_NAME路径不全导致404 fixed #484

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ThinkPHP/Library/Think/Page.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function show()

/* 生成URL */
$this->parameter[$this->p] = '[PAGE]';
$this->url = U(ACTION_NAME, $this->parameter);
$this->url = U(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME, $this->parameter);
/* 计算分页信息 */
$this->totalPages = ceil($this->totalRows / $this->listRows); //总页数
if (!empty($this->totalPages) && $this->nowPage > $this->totalPages) {
Expand Down