|
|
@ -16,13 +16,16 @@ class Controller_Cover extends Controller_Home
|
|
|
|
$height = Input::get('height');
|
|
|
|
$height = Input::get('height');
|
|
|
|
|
|
|
|
|
|
|
|
$thumb = Input::get('thumb') ?: null;
|
|
|
|
$thumb = Input::get('thumb') ?: null;
|
|
|
|
|
|
|
|
$art = Input::get('art') ?: null;
|
|
|
|
|
|
|
|
|
|
|
|
$movie = Model_Movie::find_by_pk($movie_id);
|
|
|
|
$movie = Model_Movie::find_by_pk($movie_id);
|
|
|
|
|
|
|
|
|
|
|
|
if(!$movie)
|
|
|
|
if(!$movie)
|
|
|
|
throw new FuelException();
|
|
|
|
throw new FuelException();
|
|
|
|
|
|
|
|
|
|
|
|
if(!$thumb)
|
|
|
|
if($thumb === null && $art)
|
|
|
|
|
|
|
|
$images = $movie->getArt($width, $height);
|
|
|
|
|
|
|
|
else if($thumb === null && $art === null)
|
|
|
|
$images = $movie->getCover($width, $height);
|
|
|
|
$images = $movie->getCover($width, $height);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
$images = $movie->getThumb($width, $height);
|
|
|
|
$images = $movie->getThumb($width, $height);
|
|
|
|