Fixed typo

This commit is contained in:
Pierre 2018-04-22 08:55:20 +02:00
parent 0bec88bda4
commit a2b3f65bf7
3 changed files with 7 additions and 7 deletions

View File

@ -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)

View File

@ -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;

View File

@ -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