mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Moved error_reporting setting from main.php to Core.php
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63821 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
1b1751457e
commit
f2474a0ae2
@ -21,6 +21,8 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// ENVIRONMENT CONFIG
|
// ENVIRONMENT CONFIG
|
||||||
|
|
||||||
|
error_reporting(E_ALL);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Include _ss_environment.php files
|
* Include _ss_environment.php files
|
||||||
*/
|
*/
|
||||||
@ -169,7 +171,12 @@ require_once(MANIFEST_FILE);
|
|||||||
*/
|
*/
|
||||||
if(isset($_GET['debugmanifest'])) Debug::show(file_get_contents(MANIFEST_FILE));
|
if(isset($_GET['debugmanifest'])) Debug::show(file_get_contents(MANIFEST_FILE));
|
||||||
|
|
||||||
|
// If this is a dev site, enable php error reporting
|
||||||
|
// This is necessary to force developers to acknowledge and fix
|
||||||
|
// notice level errors (you can override this directive in your _config.php)
|
||||||
|
if (Director::isLive()) {
|
||||||
|
error_reporting(E_ALL ^ E_NOTICE);
|
||||||
|
}
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// POST-MANIFEST COMMANDS
|
// POST-MANIFEST COMMANDS
|
||||||
|
|
||||||
|
7
main.php
7
main.php
@ -47,13 +47,6 @@ if (function_exists('mb_http_output')) {
|
|||||||
mb_internal_encoding('UTF-8');
|
mb_internal_encoding('UTF-8');
|
||||||
}
|
}
|
||||||
|
|
||||||
// If this is a dev site, enable php error reporting
|
|
||||||
// This is necessary to force developers to acknowledge and fix
|
|
||||||
// notice level errors (you can override this directive in your _config.php)
|
|
||||||
if (Director::isDev()) {
|
|
||||||
error_reporting(E_ALL);
|
|
||||||
}
|
|
||||||
|
|
||||||
Session::start();
|
Session::start();
|
||||||
|
|
||||||
// Apache rewrite rules use this
|
// Apache rewrite rules use this
|
||||||
|
Loading…
Reference in New Issue
Block a user