summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Theme_View.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-20 20:29:49 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-20 20:29:49 -0800
commit9d40f6fc0055d21725878ceaddc0fd079cb8b732 (patch)
tree01c8c5f90fa0e4ecaaa2dc9d2ae2e02664fadaae /modules/gallery/libraries/Theme_View.php
parent005cf8e8286b4dbc99bc47fae2662acfca855fd7 (diff)
Paginator: don't try to set the position for "other" page types.
Diffstat (limited to 'modules/gallery/libraries/Theme_View.php')
-rw-r--r--modules/gallery/libraries/Theme_View.php2
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) {