Added GIT_COMMIT to the Error dump

This commit is contained in:
Shoghi Cervantes Pueyo
2013-04-25 17:54:32 +02:00
parent 33a614c615
commit 173784752e
3 changed files with 9 additions and 7 deletions

View File

@ -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));
}