mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
chore: Some minor improvements
This commit is contained in:
parent
7e38c5b63c
commit
882c26ea09
3 changed files with 4 additions and 2 deletions
|
@ -68,6 +68,7 @@ switch ($type) {
|
||||||
|
|
||||||
case 'reg':
|
case 'reg':
|
||||||
\TorrentPier\Legacy\Torrent::tracker_register($attach_id);
|
\TorrentPier\Legacy\Torrent::tracker_register($attach_id);
|
||||||
|
// Log action
|
||||||
$log_action->mod('mod_topic_tor_register', [
|
$log_action->mod('mod_topic_tor_register', [
|
||||||
'forum_id' => $torrent['forum_id'],
|
'forum_id' => $torrent['forum_id'],
|
||||||
'topic_id' => $torrent['topic_id'],
|
'topic_id' => $torrent['topic_id'],
|
||||||
|
@ -78,6 +79,7 @@ switch ($type) {
|
||||||
|
|
||||||
case 'unreg':
|
case 'unreg':
|
||||||
\TorrentPier\Legacy\Torrent::tracker_unregister($attach_id);
|
\TorrentPier\Legacy\Torrent::tracker_unregister($attach_id);
|
||||||
|
// Log action
|
||||||
$log_action->mod('mod_topic_tor_unregister', [
|
$log_action->mod('mod_topic_tor_unregister', [
|
||||||
'forum_id' => $torrent['forum_id'],
|
'forum_id' => $torrent['forum_id'],
|
||||||
'topic_id' => $torrent['topic_id'],
|
'topic_id' => $torrent['topic_id'],
|
||||||
|
|
|
@ -27,7 +27,7 @@ $post = DB()->fetch_row("
|
||||||
WHERE p.post_id = $post_id
|
WHERE p.post_id = $post_id
|
||||||
");
|
");
|
||||||
if (!$post) {
|
if (!$post) {
|
||||||
$this->ajax_die('not post');
|
$this->ajax_die($lang['TOPIC_POST_NOT_EXIST']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
|
|
|
@ -54,7 +54,7 @@ class TorrServerAPI
|
||||||
{
|
{
|
||||||
global $bb_cfg;
|
global $bb_cfg;
|
||||||
|
|
||||||
$this->url = $bb_cfg['torr_server']['url'] . '/';
|
$this->url = rtrim(trim($bb_cfg['torr_server']['url']), '/') . '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue