mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-19 11:19:56 +09:00
bug-fix pagination Limit
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8510 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4b3e591956
commit
32fe8750e9
3 changed files with 27 additions and 3 deletions
|
|
@ -668,9 +668,9 @@
|
|||
$buff = new Object ();
|
||||
$buff->total_count = $total_count;
|
||||
$buff->total_page = $total_page;
|
||||
$buff->page = $queryObject->getLimit()->page;
|
||||
$buff->page = $queryObject->getLimit()->page->getValue();
|
||||
$buff->data = $data;
|
||||
$buff->page_navigation = new PageHandler($total_count, $total_page, $queryObject->getLimit()->page, $queryObject->getLimit()->page_count);
|
||||
$buff->page_navigation = new PageHandler($total_count, $total_page, $queryObject->getLimit()->page->getValue(), $queryObject->getLimit()->page_count);
|
||||
}else{
|
||||
$data = $this->_fetch($result);
|
||||
$buff = new Object ();
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
function Limit($list_count, $page= NULL, $page_count= NULL){
|
||||
$this->list_count = $list_count;
|
||||
if ($page){
|
||||
$this->start = ($page-1)*$list_count;
|
||||
$this->start = ($page-1)*$list_count->getValue();
|
||||
$this->page_count = $page_count;
|
||||
$this->page = $page;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue