From 829ee37a5373f5d146a9fc0125cf1ed34cfe3bbb Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 16 Dec 2024 14:24:38 -0500 Subject: [PATCH] Add Current App Version by checking the current commit hash, also moved Database version on top with App Version in Debug --- admin_debug.php | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/admin_debug.php b/admin_debug.php index 1e200bf5a..894151c35 100644 --- a/admin_debug.php +++ b/admin_debug.php @@ -8,6 +8,9 @@ $checks = []; +// Execute the git command to get the latest commit hash +$commitHash = exec('git log -1 --format=%H'); + // Section: System Information $systemInfo = []; @@ -316,10 +319,6 @@ function getDirStats($dir) { } $tablesResult->free(); - $databaseStats[] = [ - 'name' => 'Current Database Version', - 'value' => CURRENT_DATABASE_VERSION, - ]; $databaseStats[] = [ 'name' => 'Total number of tables', 'value' => $totalTables, @@ -518,6 +517,17 @@ function getDirStats($dir) {
+ + + + + + + + + +
Current App Version
Current DB Version
+

System Information