summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/albums.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-01-11 15:17:05 -0800
committerBharat Mediratta <bharat@menalto.com>2011-01-11 15:17:05 -0800
commit252aba9eaec7d1aace5e1052b1c7ccf82ab3a2d5 (patch)
treea4b70a47e137ff13d072e5b3eb2181e39593df72 /modules/gallery/controllers/albums.php
parent84e08a62838b0299a5daa7c9cac4be3eca6d0cb1 (diff)
parent24c0b69847d4144c29e557fa654c30247e628a9c (diff)
Merge branch 'fix-viewable2_master' of git://github.com/BigMadWolf/gallery3
Diffstat (limited to 'modules/gallery/controllers/albums.php')
-rw-r--r--modules/gallery/controllers/albums.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/controllers/albums.php b/modules/gallery/controllers/albums.php
index 25df0da7..3435465c 100644
--- a/modules/gallery/controllers/albums.php
+++ b/modules/gallery/controllers/albums.php
@@ -37,7 +37,7 @@ class Albums_Controller extends Items_Controller {
if ($show) {
$child = ORM::factory("item", $show);
- $index = $album->get_position($child);
+ $index = item::get_position($child);
if ($index) {
$page = ceil($index / $page_size);
if ($page == 1) {