mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Update Torrent.php
This commit is contained in:
parent
b4a2096ed0
commit
fbc357a0f5
1 changed files with 8 additions and 1 deletions
|
@ -181,7 +181,7 @@ class Torrent
|
||||||
*/
|
*/
|
||||||
public static function delete_torrent($attach_id, $mode = '')
|
public static function delete_torrent($attach_id, $mode = '')
|
||||||
{
|
{
|
||||||
global $lang, $reg_mode, $topic_id;
|
global $lang, $reg_mode, $topic_id, $log_action;
|
||||||
|
|
||||||
$attach_id = (int)$attach_id;
|
$attach_id = (int)$attach_id;
|
||||||
$reg_mode = $mode;
|
$reg_mode = $mode;
|
||||||
|
@ -201,6 +201,13 @@ class Torrent
|
||||||
self::torrent_auth_check($forum_id, $poster_id);
|
self::torrent_auth_check($forum_id, $poster_id);
|
||||||
self::tracker_unregister($attach_id);
|
self::tracker_unregister($attach_id);
|
||||||
delete_attachment(0, $attach_id);
|
delete_attachment(0, $attach_id);
|
||||||
|
|
||||||
|
// Log action
|
||||||
|
$log_action->mod('mod_topic_tor_delete', [
|
||||||
|
'forum_id' => $torrent['forum_id'],
|
||||||
|
'topic_id' => $torrent['topic_id'],
|
||||||
|
'topic_title' => $torrent['topic_title'],
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue