mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-12-25 13:08:58 +00:00
Fixed typo
This commit is contained in:
parent
0bec88bda4
commit
a2b3f65bf7
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user