mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 07:39:25 +01:00
Define error reporting
This commit is contained in:
parent
b0d38b87de
commit
10fcd9177c
10
app.php
10
app.php
|
|
@ -15,6 +15,16 @@ require_once GROCY_DATAPATH . '/config.php';
|
|||
require_once __DIR__ . '/config-dist.php'; // For not in own config defined values we use the default ones
|
||||
require_once __DIR__ . '/helpers/ConfigurationValidator.php';
|
||||
|
||||
// Error reporting definitions
|
||||
if (GROCY_MODE === 'dev')
|
||||
{
|
||||
error_reporting(E_ALL);
|
||||
}
|
||||
else
|
||||
{
|
||||
error_reporting(E_ALL ^ (E_NOTICE | E_WARNING | E_DEPRECATED));
|
||||
}
|
||||
|
||||
// Definitions for dev/demo/prerelease mode
|
||||
if ((GROCY_MODE === 'dev' || GROCY_MODE === 'demo' || GROCY_MODE === 'prerelease') && !defined('GROCY_USER_ID'))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user