From 6ccbc8b0bca9f6aa0d6084678408131fe7d3ff21 Mon Sep 17 00:00:00 2001 From: Constantin Plaiasu Date: Wed, 28 Aug 2024 21:40:08 +0300 Subject: [PATCH] add page_title to configs --- app/Http/Controllers/MovieController.php | 4 ++-- app/Http/Controllers/ShowController.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/MovieController.php b/app/Http/Controllers/MovieController.php index a787446..27f5f32 100644 --- a/app/Http/Controllers/MovieController.php +++ b/app/Http/Controllers/MovieController.php @@ -61,7 +61,7 @@ public function movies( ApiClient $api, TmdbClient $tmdb, ?int $page = 1,) $results = $this->formatApiResponse($api->getPopularMovies($page, 36),true, ['name' => Route::current()->getName()]); $meta['title'] = config('site.movies.list.title', 'Popular Movies'); if ($page > 1) $meta['title'] .= sprintf(' - Page %s', $page); - $meta['page_title'] = config('site.movies.list.title', 'Popular Movies'); + $meta['page_title'] = config('site.movies.list.page_title', 'Popular Movies'); $meta['description'] = config('site.movies.list.description', 'Popular Movies'); $meta['keywords'] = config('site.movies.list.keywords'); $meta['image'] = asset('images/cover.jpg'); @@ -105,7 +105,7 @@ public function genres( ApiClient $api, TmdbClient $tmdb, string $genre, ?int $p $results = $this->formatApiResponse($api->getGenreMovies($genre->id, $page, 36), true, ['name' => Route::current()->getName(), 'params' => ['genre' => $genre->slug]]); $meta['title'] = sprintf(config('site.movies.genres.title', 'Genre Movies'), $genre->name); if ($page > 1) $meta['title'] .= sprintf(' - Page %s', $page); - $meta['page_title'] = sprintf(config('site.movies.genres.title', 'Genre Movies'), $genre->name); + $meta['page_title'] = sprintf(config('site.movies.genres.page_title', 'Genre Movies'), $genre->name); $meta['description'] = sprintf(config('site.movies.genres.description', 'Genre Movies'), $genre->name); $meta['keywords'] = config('site.movies.genres.keywords', null); $meta['image'] = asset('images/cover.jpg'); diff --git a/app/Http/Controllers/ShowController.php b/app/Http/Controllers/ShowController.php index d5f3896..b9de67c 100644 --- a/app/Http/Controllers/ShowController.php +++ b/app/Http/Controllers/ShowController.php @@ -157,7 +157,7 @@ public function shows( ApiClient $api, TmdbClient $tmdb, ?int $page = 1,) $results = $this->formatApiResponse($api->getPopularShows($page, 36), true, ['name' => Route::current()->getName()]); $meta['title'] = config('site.shows.list.title', 'Popular Shows'); if ($page > 1) $meta['title'] .= sprintf(' - Page %s', $page); - $meta['page_title'] = config('site.shows.list.title', 'Popular Shows'); + $meta['page_title'] = config('site.shows.list.page_title', 'Popular Shows'); $meta['description'] = config('site.shows.list.description', 'Popular Shows'); $meta['keywords'] = config('site.shows.list.keywords', false); $meta['image'] = asset('images/cover.jpg');