mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-06 13:16:54 +02:00
Remove turn off Error Handler for Production environment
This commit is contained in:
@@ -1,14 +1,5 @@
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Report All Errors
|
||||
*
|
||||
* By setting error reporting to -1, we essentially force PHP to report
|
||||
* every error, and this is guranteed to show every error on future
|
||||
* releases of PHP. This allows everything to be fixed early!
|
||||
*/
|
||||
error_reporting(-1);
|
||||
|
||||
/**
|
||||
* Monstra requires PHP 5.2.3 or greater
|
||||
*/
|
||||
@@ -32,6 +23,15 @@ include ROOT . DS .'engine'. DS .'Monstra.php';
|
||||
*/
|
||||
Monstra::$environment = Monstra::PRODUCTION;
|
||||
|
||||
/**
|
||||
* Report Errors
|
||||
*/
|
||||
if (Monstra::$environment == Monstra::PRODUCTION) {
|
||||
error_reporting(0);
|
||||
} else {
|
||||
error_reporting(-1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize Monstra
|
||||
*/
|
||||
|
Reference in New Issue
Block a user