mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Added GIT_COMMIT to the Error dump
This commit is contained in:
parent
33a614c615
commit
173784752e
3 changed files with 9 additions and 7 deletions
|
|
@ -48,4 +48,10 @@ define("CURRENT_STRUCTURE", 5);
|
|||
define("CURRENT_PROTOCOL", 9);
|
||||
define("CURRENT_MINECRAFT_VERSION", "0.6.1 alpha");
|
||||
define("CURRENT_API_VERSION", 6);
|
||||
define("CURRENT_PHP_VERSION", "5.5");
|
||||
define("CURRENT_PHP_VERSION", "5.5");
|
||||
$gitsha1 = false;
|
||||
if(file_exists(FILE_PATH.".git/refs/heads/master")){ //Found Git information!
|
||||
define(GIT_COMMIT, strtolower(trim(file_get_contents(FILE_PATH.".git/refs/heads/master"))));
|
||||
}else{ //Unknown :(
|
||||
define(GIT_COMMIT, str_repeat("00", 20));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue