fix warning

This commit is contained in:
xiaomlove
2021-05-14 11:04:03 +08:00
parent 6d3068eb8c
commit 6c85176e2f
6 changed files with 14 additions and 15 deletions
+1 -1
View File
@@ -2802,7 +2802,7 @@ function deletetorrent($id) {
foreach(array("peers", "files", "comments") as $x) {
sql_query("DELETE FROM $x WHERE torrent = ".mysql_real_escape_string($id));
}
unlink("$torrent_dir/$id.torrent");
unlink(getFullDirectory("$torrent_dir/$id.torrent"));
}
function pager($rpp, $count, $href, $opts = array(), $pagename = "page") {