mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-12 08:04:10 +02:00
Monstra Bootstrap - updates
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
* Core::STAGING - The staging environment.
|
||||
* Core::PRODUCTION - The production environment.
|
||||
*/
|
||||
Core::$environment = Core::PRODUCTION;
|
||||
Core::$environment = Core::DEVELOPMENT;
|
||||
|
||||
|
||||
/**
|
||||
@@ -31,9 +31,23 @@
|
||||
* Report Errors
|
||||
*/
|
||||
if (Core::$environment == Core::PRODUCTION) {
|
||||
|
||||
/**
|
||||
* 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(0);
|
||||
|
||||
} else {
|
||||
|
||||
/**
|
||||
* Production environment
|
||||
*/
|
||||
error_reporting(-1);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user