]> git.p6c8.net - jirafeau_project.git/blobdiff - lib/settings.php
[BUGFIX] lower POST size when ̀PHP's upload_max_filesize is too low.
[jirafeau_project.git] / lib / settings.php
index 17df61efdf5485e7722d32dafa3d2d8dd0d7b3aa..fa9efaa8e0309650909258be11bc66db3451b7cf 100644 (file)
@@ -29,11 +29,22 @@ if (file_exists(JIRAFEAU_ROOT . 'lib/config.local.php')) {
     unset($cfgOriginal);
 }
 
+// Setup debug mode
+if ($cfg['debug'] === true)
+{
+    @error_reporting(E_ALL);
+}
+else
+{
+    @error_reporting(0);
+}
+
+
 // Set constants
 
 /* Jirafeau package */
 define('JIRAFEAU_PACKAGE', 'Jirafeau');
-define('JIRAFEAU_VERSION', '4.0.0');
+define('JIRAFEAU_VERSION', '4.2.0');
 
 /* Directories. */
 define('VAR_FILES', $cfg['var_root'] . 'files/');

patrick-canterino.de