From 20cb0bfe17003456b12e260046c303f9f549f2c2 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 29 May 2023 12:37:26 +0700 Subject: [PATCH] Minor improvements (#732) --- library/includes/page_footer.php | 2 +- src/Legacy/SqlDb.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/library/includes/page_footer.php b/library/includes/page_footer.php index b32b9e529..4a9c13145 100644 --- a/library/includes/page_footer.php +++ b/library/includes/page_footer.php @@ -43,7 +43,7 @@ if ($show_dbg_info) { $sql_t = $DBS->sql_timetotal; $sql_time_txt = ($sql_t) ? sprintf('%.3f ' . $lang['SEC'] . ' (%d%%) · ', $sql_t, round($sql_t * 100 / $gen_time)) : ''; $num_q = $DBS->num_queries; - $stat .= "  |  MySQL: {$sql_time_txt}{$num_q} " . $lang['QUERIES']; + $stat .= "  |  {$DBS->get_db_obj()->engine}: {$sql_time_txt}{$num_q} " . $lang['QUERIES']; } $stat .= "  |  $gzip_text"; diff --git a/src/Legacy/SqlDb.php b/src/Legacy/SqlDb.php index 3dd0349b1..9696535b6 100644 --- a/src/Legacy/SqlDb.php +++ b/src/Legacy/SqlDb.php @@ -10,6 +10,7 @@ namespace TorrentPier\Legacy; use mysqli_result; + use TorrentPier\Dev; /**