mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Global: Add ability to configure display of commit hash
This commit is contained in:
parent
b5524b6b7b
commit
9425180a6f
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -59,6 +59,7 @@ openvk:
|
|||
bellsAndWhistles:
|
||||
fartscroll: false
|
||||
testLabel: false
|
||||
showCommitHash: true
|
||||
defaultMobileTheme: ""
|
||||
|
||||
telemetry:
|
||||
|
|
Loading…
Reference in a new issue