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:
Hayden Smith 2008-10-08 03:35:28 +00:00
parent 1b1751457e
commit f2474a0ae2
2 changed files with 8 additions and 8 deletions

View File

@ -21,6 +21,8 @@
///////////////////////////////////////////////////////////////////////////////
// ENVIRONMENT CONFIG
error_reporting(E_ALL);
/**
* 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 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

View File

@ -47,13 +47,6 @@ if (function_exists('mb_http_output')) {
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();
// Apache rewrite rules use this