mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Reorder return values of VariableBase::getValue() so that the value can be quickly accessed
This commit is contained in:
parent
0d14aca1c0
commit
fd0491cb0d
3 changed files with 18 additions and 15 deletions
|
|
@ -487,9 +487,9 @@ class DB
|
|||
}
|
||||
|
||||
// Collect various counts used in the page calculation.
|
||||
list($is_expression, $list_count) = $query->navigation->list_count->getValue($args);
|
||||
list($is_expression, $page_count) = $query->navigation->page_count->getValue($args);
|
||||
list($is_expression, $page) = $query->navigation->page->getValue($args);
|
||||
$list_count = $query->navigation->list_count->getValue($args)[0];
|
||||
$page_count = $query->navigation->page_count->getValue($args)[0];
|
||||
$page = $query->navigation->page->getValue($args)[0];
|
||||
$total_count = intval($count);
|
||||
$total_page = max(1, intval(ceil($total_count / $list_count)));
|
||||
$last_index = $total_count - (($page - 1) * $list_count);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue