error reporting level set in E_ALL & ~E_NOTICE by default, can be overriden in config

This commit is contained in:
Maryana Rozhankivska
2014-06-02 18:00:09 +03:00
parent 5d198e2b98
commit 752cd4a8ef
4 changed files with 11 additions and 4 deletions

View File

@ -18,8 +18,6 @@ class Tools
die(_('Oops, it seems you don\'t have PHP 5.'));
}
error_reporting(E_ALL);
function stripslashesDeep($value) {
return is_array($value)
? array_map('stripslashesDeep', $value)
@ -64,7 +62,7 @@ class Tools
if (strpos($host, ':') !== false) {
$serverport = '';
}
return 'http' . ($https ? 's' : '') . '://'
. $host . $serverport . $scriptname;
}