From a2b3f65bf7758b58540765e614d498b45d3e8d8d Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 22 Apr 2018 08:55:20 +0200 Subject: [PATCH] Fixed typo --- RestControllers/postsController.php | 4 ++-- classes/components/movies.php | 6 +++--- classes/components/posts.php | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/RestControllers/postsController.php b/RestControllers/postsController.php index 7a05b20..cc4533c 100644 --- a/RestControllers/postsController.php +++ b/RestControllers/postsController.php @@ -529,8 +529,8 @@ class postsController { $infos['visibility_level'] = $this::VISIBILITY_LEVELS_API[$infos['visibility_level']]; //Turn movie into API entry (if any) - if($infos["video_infos"] != null) - $infos["video_infos"] = MoviesController::MovieToAPI($infos["video_infos"]); + if($infos["video_info"] != null) + $infos["video_info"] = MoviesController::MovieToAPI($infos["video_info"]); //Turn survey into API entry (if any) if($infos["data_survey"] != null) diff --git a/classes/components/movies.php b/classes/components/movies.php index 4abcf71..6f3c3bd 100644 --- a/classes/components/movies.php +++ b/classes/components/movies.php @@ -34,12 +34,12 @@ class Movies { } /** - * Get informations about a movie + * Get information about a movie * * @param int $movieID The ID of the target movie * @return Movie Information about the movie (empty in case of failure) */ - public function get_infos(int $movieID) : Movie { + public function get_info(int $movieID) : Movie { //Perform a request in the database $condition = "WHERE ID = ?"; @@ -73,7 +73,7 @@ class Movies { public function get_owner(int $movieID) : int { //Get infos about the movie - $movie = $this->get_infos($movieID); + $movie = $this->get_info($movieID); if(!$movie->isValid()) return 0; diff --git a/classes/components/posts.php b/classes/components/posts.php index 2b03eba..28f0338 100644 --- a/classes/components/posts.php +++ b/classes/components/posts.php @@ -604,10 +604,10 @@ class Posts { //Get informations about the video if(!is_null($info['video_id'])){ - $info['video_infos'] = CS::get()->components->movies->get_infos($info['video_id']); + $info['video_info'] = CS::get()->components->movies->get_info($info['video_id']); } else { - $info['video_infos'] = null; + $info['video_info'] = null; } //Countdown timer specific