forked from wallabag/wallabag
error reporting level set in E_ALL & ~E_NOTICE by default, can be overriden in config
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
@ -30,6 +30,10 @@
|
||||
|
||||
@define ('MODE_DEMO', FALSE);
|
||||
@define ('DEBUG_POCHE', FALSE);
|
||||
|
||||
//default level of error reporting in application. Developers should override it in their config.inc.php: set to E_ALL.
|
||||
@define ('ERROR_REPORTING', E_ALL & ~E_NOTICE);
|
||||
|
||||
@define ('DOWNLOAD_PICTURES', FALSE); # This can slow down the process of adding articles
|
||||
@define ('REGENERATE_PICTURES_QUALITY', 75);
|
||||
@define ('CONVERT_LINKS_FOOTNOTES', FALSE);
|
||||
|
||||
Reference in New Issue
Block a user