diff options
| author | Jérémy Subtil <bigmadwolf@gmail.com> | 2011-01-09 00:22:46 +0100 |
|---|---|---|
| committer | Jérémy Subtil <bigmadwolf@gmail.com> | 2011-01-09 12:14:46 +0100 |
| commit | 24c0b69847d4144c29e557fa654c30247e628a9c (patch) | |
| tree | 40ae2099af1d636a1db138a36efbe0341b29f0b7 /modules/gallery/controllers/albums.php | |
| parent | 0d7e951aa5f7329edb25e821de95051668789bcd (diff) | |
Fixed item controllers so that any item position is computed correctly, when some other items belonging to the same parent album are not viewable.
Changed depracated calls to item_Model::get_position() to item::get_position().
Diffstat (limited to 'modules/gallery/controllers/albums.php')
| -rw-r--r-- | modules/gallery/controllers/albums.php | 2 |
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) { |
