mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-30 02:46:19 -04:00
Paginator: don't try to set the position for "other" page types.
This commit is contained in:
@@ -172,7 +172,7 @@ class Theme_View_Core extends Gallery_View {
|
||||
|
||||
$v->first_visible_position = ($this->page - 1) * $this->page_size + 1;
|
||||
$v->last_visible_position = min($this->page * $this->page_size, $v->total);
|
||||
} else {
|
||||
} else if ($this->page_type == "item") {
|
||||
$v->position = $this->position;
|
||||
$v->total = $this->sibling_count;
|
||||
if ($this->previous_item) {
|
||||
|
||||
Reference in New Issue
Block a user