summaryrefslogtreecommitdiffstats
path: root/app/app.php
diff options
context:
space:
mode:
authornashe <thomas@chauchefoin.fr>2017-05-28 13:49:56 +0200
committernashe <thomas@chauchefoin.fr>2017-05-28 13:49:56 +0200
commitb3610f17ef53dd3b3455614263ffd809843b101c (patch)
tree98eae966c33b1abc3e1f606f9953a9a40ebfe35e /app/app.php
parentb3274cae04bc319c71d9d2037384480e8f8dc43c (diff)
downloadplanet-b3610f17ef53dd3b3455614263ffd809843b101c.tar
planet-b3610f17ef53dd3b3455614263ffd809843b101c.tar.gz
planet-b3610f17ef53dd3b3455614263ffd809843b101c.tar.bz2
planet-b3610f17ef53dd3b3455614263ffd809843b101c.tar.xz
planet-b3610f17ef53dd3b3455614263ffd809843b101c.zip
Move the debug directive to configuration file
Diffstat (limited to 'app/app.php')
-rwxr-xr-xapp/app.php13
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']);