diff options
Diffstat (limited to 'app/app.php')
-rwxr-xr-x | app/app.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/app/app.php b/app/app.php index ec4e446..dca9bc4 100755 --- a/app/app.php +++ b/app/app.php @@ -1,12 +1,6 @@ <?php -//Debug ? -$debug = isset($_GET['debug']) ? $_GET['debug'] : 0; -if ($debug) { - error_reporting(E_ALL); -} else { - error_reporting(0); -} +error_reporting(0); require_once __DIR__.'/../vendor/autoload.php'; @@ -26,6 +20,11 @@ if (is_file($savedConfig)){ $PlanetConfig = new PlanetConfig($conf); $Planet = new Planet($PlanetConfig); + + if ($conf['debug']) { + error_reporting(E_ALL); + } + } $l10n = new Simplel10n($conf['locale']); |