diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-11-20 20:29:49 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-20 20:29:49 -0800 |
commit | 9d40f6fc0055d21725878ceaddc0fd079cb8b732 (patch) | |
tree | 01c8c5f90fa0e4ecaaa2dc9d2ae2e02664fadaae | |
parent | 005cf8e8286b4dbc99bc47fae2662acfca855fd7 (diff) |
Paginator: don't try to set the position for "other" page types.
-rw-r--r-- | modules/gallery/libraries/Theme_View.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php index b1167d0e..b64deab9 100644 --- a/modules/gallery/libraries/Theme_View.php +++ b/modules/gallery/libraries/Theme_View.php @@ -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) { |