diff options
| author | colings <colings@example.com> | 2011-01-09 11:43:45 -0600 |
|---|---|---|
| committer | colings <colings@example.com> | 2011-01-09 11:43:45 -0600 |
| commit | 02a349f68ac480d5b1a630e14b4f2e3558328673 (patch) | |
| tree | 25bf25960b6811d8dbcbed6f6c9d63de7c03bd4e /modules/gallery/controllers/movies.php | |
| parent | c2a1ea64eda2bf3e22ecaf4df4714c091bc5d7c4 (diff) | |
| parent | de5b06ae7442db2c7a8999c0c806997248ddb151 (diff) | |
Merge remote branch 'upstream/master'
Diffstat (limited to 'modules/gallery/controllers/movies.php')
| -rw-r--r-- | modules/gallery/controllers/movies.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/gallery/controllers/movies.php b/modules/gallery/controllers/movies.php index 717eb8aa..bf50abd5 100644 --- a/modules/gallery/controllers/movies.php +++ b/modules/gallery/controllers/movies.php @@ -38,19 +38,19 @@ class Movies_Controller extends Items_Controller { } $template = new Theme_View("page.html", "item", "movie"); - $template->set_global("item", $movie); - $template->set_global("children", array()); - $template->set_global("children_count", 0); - $template->set_global("parents", $movie->parents()->as_array()); - $template->set_global("next_item", $next_item); - $template->set_global("previous_item", $previous_item); - $template->set_global("sibling_count", $movie->parent()->viewable()->children_count($where)); - $template->set_global("position", $position); + $template->set_global( + array("item" => $movie, + "children" => array(), + "children_count" => 0, + "parents" => $movie->parents()->as_array(), + "next_item" => $next_item, + "previous_item" => $previous_item, + "sibling_count" => $movie->parent()->viewable()->children_count($where), + "position" => $position)); $template->content = new View("movie.html"); - $movie->view_count++; - $movie->save(); + $movie->increment_view_count(); print $template; } |
