mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Change error reporting level to explicitly exclude values rather than using XOR.
This commit is contained in:
parent
bad1b88942
commit
10b09420be
@ -250,8 +250,8 @@ SS_TemplateLoader::instance()->pushManifest(new SS_TemplateManifest(
|
|||||||
// This is necessary to force developers to acknowledge and fix
|
// This is necessary to force developers to acknowledge and fix
|
||||||
// notice level errors (you can override this directive in your _config.php)
|
// notice level errors (you can override this directive in your _config.php)
|
||||||
if (Director::isLive()) {
|
if (Director::isLive()) {
|
||||||
if(defined('E_DEPRECATED')) error_reporting((E_ALL ^ E_NOTICE) ^ E_DEPRECATED);
|
if(defined('E_DEPRECATED')) error_reporting(E_ALL & ~(E_DEPRECATED | E_STRICT | E_NOTICE));
|
||||||
else error_reporting(E_ALL ^ E_NOTICE);
|
else error_reporting(E_ALL & ~E_NOTICE);
|
||||||
}
|
}
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// POST-MANIFEST COMMANDS
|
// POST-MANIFEST COMMANDS
|
||||||
|
Loading…
Reference in New Issue
Block a user