diff --git a/misc/footer.php b/misc/footer.php index af063d48..99715e47 100644 --- a/misc/footer.php +++ b/misc/footer.php @@ -8,8 +8,11 @@
" . printftext("latest_commit", $hash) . ""; + if (file_exists(".git/refs/heads/main")) { + $hash = file_get_contents(".git/refs/heads/main"); + } + + echo "" . printftext("latest_commit", $hash) . ""; ?>