diff options
author | nashe <thomas@chauchefoin.fr> | 2017-05-28 13:49:56 +0200 |
---|---|---|
committer | nashe <thomas@chauchefoin.fr> | 2017-05-28 13:49:56 +0200 |
commit | b3610f17ef53dd3b3455614263ffd809843b101c (patch) | |
tree | 98eae966c33b1abc3e1f606f9953a9a40ebfe35e /app/app.php | |
parent | b3274cae04bc319c71d9d2037384480e8f8dc43c (diff) | |
download | planet-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-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']); |