mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 21:19:44 +00:00
Increased error level
This commit is contained in:
parent
6d4472a339
commit
7bc9500484
1 changed files with 4 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ if($daylight === 0){
|
||||||
date_default_timezone_set(timezone_name_from_abbr("", $offset, $daylight));
|
date_default_timezone_set(timezone_name_from_abbr("", $offset, $daylight));
|
||||||
|
|
||||||
gc_enable();
|
gc_enable();
|
||||||
error_reporting(E_ALL ^ E_NOTICE);
|
error_reporting(E_ALL | E_STRICT);
|
||||||
ini_set("allow_url_fopen", 1);
|
ini_set("allow_url_fopen", 1);
|
||||||
ini_set("display_errors", 1);
|
ini_set("display_errors", 1);
|
||||||
ini_set("display_startup_errors", 1);
|
ini_set("display_startup_errors", 1);
|
||||||
|
|
@ -65,7 +65,7 @@ define("CURRENT_API_VERSION", 11);
|
||||||
define("CURRENT_PHP_VERSION", "5.5");
|
define("CURRENT_PHP_VERSION", "5.5");
|
||||||
$gitsha1 = false;
|
$gitsha1 = false;
|
||||||
if(file_exists(FILE_PATH.".git/refs/heads/master")){ //Found Git information!
|
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"))));
|
define("GIT_COMMIT", strtolower(trim(file_get_contents(FILE_PATH.".git/refs/heads/master"))));
|
||||||
}else{ //Unknown :(
|
}else{ //Unknown :(
|
||||||
define(GIT_COMMIT, str_repeat("00", 20));
|
define("GIT_COMMIT", str_repeat("00", 20));
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue