diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2011-01-11 15:17:05 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2011-01-11 15:17:05 -0800 |
| commit | 252aba9eaec7d1aace5e1052b1c7ccf82ab3a2d5 (patch) | |
| tree | a4b70a47e137ff13d072e5b3eb2181e39593df72 /modules/gallery/controllers/photos.php | |
| parent | 84e08a62838b0299a5daa7c9cac4be3eca6d0cb1 (diff) | |
| parent | 24c0b69847d4144c29e557fa654c30247e628a9c (diff) | |
Merge branch 'fix-viewable2_master' of git://github.com/BigMadWolf/gallery3
Diffstat (limited to 'modules/gallery/controllers/photos.php')
| -rw-r--r-- | modules/gallery/controllers/photos.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/controllers/photos.php b/modules/gallery/controllers/photos.php index d500a92e..4578747d 100644 --- a/modules/gallery/controllers/photos.php +++ b/modules/gallery/controllers/photos.php @@ -28,10 +28,10 @@ class Photos_Controller extends Items_Controller { access::required("view", $photo); $where = array(array("type", "!=", "album")); - $position = $photo->parent()->get_position($photo, $where); + $position = item::get_position($photo, $where); if ($position > 1) { list ($previous_item, $ignore, $next_item) = - $photo->parent()->children(3, $position - 2, $where); + $photo->parent()->viewable()->children(3, $position - 2, $where); } else { $previous_item = null; list ($next_item) = $photo->parent()->viewable()->children(1, $position, $where); |
