Skip to content

Commit

Permalink
Fix filename path
Browse files Browse the repository at this point in the history
This one mistake is causing a bunch of downstream problems.
  • Loading branch information
waldoj committed Jan 17, 2024
1 parent d4b9fa8 commit 5c0a3cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/get_video.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ function delete($message)
/*
* Retrieve the file and store it locally.
*/
$video->filename = '../video/' . $video->chamber . '-' . $video->type . '-' . $video->date . '.mp4';
$fp = fopen($video->filename, 'w+');
$video->filename = $video->chamber . '-' . $video->type . '-' . $video->date . '.mp4';
$fp = fopen('../video/' . $video->filename, 'w+');
$ch = curl_init($video->url);
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
Expand Down

0 comments on commit 5c0a3cf

Please sign in to comment.