mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Modify version output
This commit is contained in:
parent
774f041035
commit
98def36fc9
1 changed files with 8 additions and 2 deletions
|
@ -120,8 +120,14 @@ return (function() {
|
||||||
require __DIR__ . "/vendor/autoload.php";
|
require __DIR__ . "/vendor/autoload.php";
|
||||||
|
|
||||||
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 = "nightly-" . `git --git-dir="$gitDir" log --pretty="%h" -n1 HEAD`;
|
||||||
|
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);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue