diff --git a/bootstrap.php b/bootstrap.php index 70b52244..b2bcbec9 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -227,7 +227,7 @@ return (function() { if(empty($_SERVER["REQUEST_SCHEME"])) $_SERVER["REQUEST_SCHEME"] = empty($_SERVER["HTTPS"]) ? "HTTP" : "HTTPS"; - $showCommitHash = true; # plz remove when release + $showCommitHash = OPENVK_ROOT_CONF["openvk"]["preferences"]["bellsAndWhistles"]["showCommitHash"] ?? true; if(is_dir($gitDir = OPENVK_ROOT . "/.git") && $showCommitHash) $ver = trim(`git --git-dir="$gitDir" log --pretty="%h" -n1 HEAD` ?? "Unknown version") . "-nightly"; else diff --git a/openvk-example.yml b/openvk-example.yml index df9c55ef..a3b98d0c 100644 --- a/openvk-example.yml +++ b/openvk-example.yml @@ -59,6 +59,7 @@ openvk: bellsAndWhistles: fartscroll: false testLabel: false + showCommitHash: true defaultMobileTheme: "" telemetry: