summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Theme_View.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-11-21 09:28:47 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-11-21 09:28:47 -0800
commit75998948fd38ed1dc6168a3b2dae76225a49364b (patch)
tree514ff36a54df6a56feda877fe1de3794edc0a1f9 /modules/gallery/libraries/Theme_View.php
parent48e5af8d739f69e5891d072fab98240641c2640c (diff)
parent4c5e2000f606d696a056fcfed231df5be8a42ada (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
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) {