Modify version output

This commit is contained in:
kfcjew 2020-06-07 21:58:02 +03:00
parent 774f041035
commit e350dcd2d7
No known key found for this signature in database
GPG key ID: 2D28E7F8926D1DF6

View file

@ -121,7 +121,13 @@ return (function() {
setlocale(LC_TIME, "POSIX"); setlocale(LC_TIME, "POSIX");
define("OPENVK_VERSION", "Altair Preview (Build 10)", false); $showCommitHash = true; # plz remove when release
if(is_dir($gitDir = OPENVK_ROOT . "/.git") && $showCommitHash)
$ver = trim(`git --git-dir="$gitDir" log --pretty="%h" -n1 HEAD`) . "-nightly";
else
$ver = "Build 15";
define("OPENVK_VERSION", "Altair Preview ($ver)", false);
define("OPENVK_DEFAULT_PER_PAGE", 10, false); define("OPENVK_DEFAULT_PER_PAGE", 10, false);
define("__OPENVK_ERROR_CLOCK_IN_FUTURE", "Server clock error: FK1200-DTF", false); define("__OPENVK_ERROR_CLOCK_IN_FUTURE", "Server clock error: FK1200-DTF", false);
}); });