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/movies.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/movies.php')
| -rw-r--r-- | modules/gallery/controllers/movies.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/controllers/movies.php b/modules/gallery/controllers/movies.php index bf50abd5..7c85dd98 100644 --- a/modules/gallery/controllers/movies.php +++ b/modules/gallery/controllers/movies.php @@ -28,10 +28,10 @@ class Movies_Controller extends Items_Controller { access::required("view", $movie); $where = array(array("type", "!=", "album")); - $position = $movie->parent()->get_position($movie, $where); + $position = item::get_position($movie, $where); if ($position > 1) { list ($previous_item, $ignore, $next_item) = - $movie->parent()->children(3, $position - 2, $where); + $movie->parent()->viewable()->children(3, $position - 2, $where); } else { $previous_item = null; list ($next_item) = $movie->parent()->viewable()->children(1, $position, $where); |
