From 3248066a3772fb80c6637c3c466b8d3934af6055 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Fri, 13 Dec 2013 15:52:17 +0100 Subject: [PATCH] Increased error level --- src/config.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config.php b/src/config.php index 21b38f068..5fbe130fd 100644 --- a/src/config.php +++ b/src/config.php @@ -44,7 +44,7 @@ if($daylight === 0){ date_default_timezone_set(timezone_name_from_abbr("", $offset, $daylight)); gc_enable(); -error_reporting(E_ALL ^ E_NOTICE); +error_reporting(E_ALL | E_STRICT); ini_set("allow_url_fopen", 1); ini_set("display_errors", 1); ini_set("display_startup_errors", 1); @@ -65,7 +65,7 @@ define("CURRENT_API_VERSION", 11); 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")))); + define("GIT_COMMIT", strtolower(trim(file_get_contents(FILE_PATH.".git/refs/heads/master")))); }else{ //Unknown :( - define(GIT_COMMIT, str_repeat("00", 20)); -} + define("GIT_COMMIT", str_repeat("00", 20)); +} \ No newline at end of file