From ac1e8cc293b4d9e21bcde54f0dcad13e13b0584a Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 10 Apr 2023 22:19:00 +0700 Subject: [PATCH] Minor fixes (#154) * Minor fixes * Update mysql.php --- CHANGELOG.md | 2 +- bt/includes/init_tr.php | 2 +- library/includes/core/mysql.php | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c5a2dd96..d2d8d815 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,7 +27,7 @@ - Use XS_TPL_PREFIX instread of 'tpl_' [\#150](https://github.com/torrentpier/torrentpier-lts/pull/150) ([belomaxorka](https://github.com/belomaxorka)) - Use constants instead of string literals [\#151](https://github.com/torrentpier/torrentpier-lts/pull/151) ([belomaxorka](https://github.com/belomaxorka)) - Sync language (html dir) with latest sources [\#152](https://github.com/torrentpier/torrentpier-lts/pull/152) ([belomaxorka](https://github.com/belomaxorka)) -- Minor fixes [\#124](https://github.com/torrentpier/torrentpier-lts/pull/124), [\#133](https://github.com/torrentpier/torrentpier-lts/pull/133), [\#135](https://github.com/torrentpier/torrentpier-lts/pull/135), [\#136](https://github.com/torrentpier/torrentpier-lts/pull/136), [\#139](https://github.com/torrentpier/torrentpier-lts/pull/139), [\#142](https://github.com/torrentpier/torrentpier-lts/pull/142), [\#144](https://github.com/torrentpier/torrentpier-lts/pull/144), [\#145](https://github.com/torrentpier/torrentpier-lts/pull/145), [\#148](https://github.com/torrentpier/torrentpier-lts/pull/148), [\#153](https://github.com/torrentpier/torrentpier-lts/pull/153) ([belomaxorka](https://github.com/belomaxorka)) +- Minor fixes [\#124](https://github.com/torrentpier/torrentpier-lts/pull/124), [\#133](https://github.com/torrentpier/torrentpier-lts/pull/133), [\#135](https://github.com/torrentpier/torrentpier-lts/pull/135), [\#136](https://github.com/torrentpier/torrentpier-lts/pull/136), [\#139](https://github.com/torrentpier/torrentpier-lts/pull/139), [\#142](https://github.com/torrentpier/torrentpier-lts/pull/142), [\#144](https://github.com/torrentpier/torrentpier-lts/pull/144), [\#145](https://github.com/torrentpier/torrentpier-lts/pull/145), [\#148](https://github.com/torrentpier/torrentpier-lts/pull/148), [\#153](https://github.com/torrentpier/torrentpier-lts/pull/153), [\#154](https://github.com/torrentpier/torrentpier-lts/pull/154) ([belomaxorka](https://github.com/belomaxorka)) ## [v2.1.5-2023.03](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.03) (2023-04-04) [Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.03...main) diff --git a/bt/includes/init_tr.php b/bt/includes/init_tr.php index f3f1b829..9be87be3 100644 --- a/bt/includes/init_tr.php +++ b/bt/includes/init_tr.php @@ -3,7 +3,7 @@ if (!defined('IN_TRACKER')) die(basename(__FILE__)); // Exit if tracker is disabled -if ($tr_cfg['off']) tr_die($tr_cfg['off_reason']); +if ($tr_cfg['off']) msg_die($tr_cfg['off_reason']); // // Functions diff --git a/library/includes/core/mysql.php b/library/includes/core/mysql.php index 7f3ef12d..b7915aec 100644 --- a/library/includes/core/mysql.php +++ b/library/includes/core/mysql.php @@ -716,7 +716,11 @@ class sql_db } } - @define('IN_FIRST_SLOW_QUERY', true); + if (!defined('IN_FIRST_SLOW_QUERY')) + { + define('IN_FIRST_SLOW_QUERY', true); + } + CACHE('bb_cache')->set('dont_log_slow_query', $new_priority, $ignoring_time); }