Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Jan 30, 2025
1 parent ff92987 commit 49aab65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/Live/uploadPoster.json.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@
$obj->image = saveCroppieImage($obj->path, "image");
$obj->error = false;
}
}else{
forbiddenPage('This live does not belong to you');
}
} else {
$obj->path = $global['systemRootPath'] . Live::_getPosterImage(User::getId(), $live_servers_id, 0, 0, $posterType);
$obj->image = saveCroppieImage($obj->path, "image");
if ($obj->image) {
$obj->pathThumbs = $global['systemRootPath'] . Live::_getPosterThumbsImage(User::getId(), $live_servers_id, $posterType);

_error_log("removePoster.php ({$obj->pathThumbs}) unlink line=".__LINE__);
@unlink($obj->pathThumbs);
$obj->error = false;
Expand Down

0 comments on commit 49aab65

Please sign in to comment.