diff --git a/library/attach_mod/displaying_torrent.php b/library/attach_mod/displaying_torrent.php index 917228116..49435c1b5 100644 --- a/library/attach_mod/displaying_torrent.php +++ b/library/attach_mod/displaying_torrent.php @@ -141,6 +141,7 @@ if ($tor_reged && $tor_info) { $tor_completed_count = declension((int)$tor_info['complete_count'], 'times'); $tor_id = $tor_info['topic_id']; $tor_type = $tor_info['tor_type']; + // Magnet link $user_passkey = \TorrentPier\Legacy\Torrent::getPasskey($bt_user_id); $tor_magnet = create_magnet($tor_info['info_hash'], $tor_info['info_hash_v2'], $user_passkey, wbr($t_data['topic_title'])); diff --git a/src/Dev.php b/src/Dev.php index 3191efe7f..45d579e90 100644 --- a/src/Dev.php +++ b/src/Dev.php @@ -121,7 +121,7 @@ class Dev $log = ''; foreach ($DBS->srv as $srv_name => $db_obj) { - $log .= !empty($db_obj) ? self::get_sql_log_html($db_obj, "database: $srv_name [{$db_obj->engine}]") : ''; + $log .= !empty($db_obj->dbg) ? self::get_sql_log_html($db_obj, "database: $srv_name [{$db_obj->engine}]") : ''; } foreach ($CACHES->obj as $cache_name => $cache_obj) { diff --git a/src/Legacy/Datastore/Redis.php b/src/Legacy/Datastore/Redis.php index f127eb971..0093840cd 100644 --- a/src/Legacy/Datastore/Redis.php +++ b/src/Legacy/Datastore/Redis.php @@ -39,7 +39,7 @@ class Redis extends Common { $connect_type = ($this->cfg['pconnect']) ? 'pconnect' : 'connect'; - $this->cur_query = 'connect ' . $this->cfg['host'] . ':' . $this->cfg['port']; + $this->cur_query = $connect_type . ' ' . $this->cfg['host'] . ':' . $this->cfg['port']; $this->debug('start'); if (@$this->redis->$connect_type($this->cfg['host'], $this->cfg['port'])) {