Merge pull request #133 from simonwelsh/54_fixes

MINOR Change error reporting level to explicitly exclude values rather t...
This commit is contained in:
Sam Minnée 2011-12-16 18:04:42 -08:00
commit fdb8665a43

View File

@ -250,8 +250,8 @@ SS_TemplateLoader::instance()->pushManifest(new SS_TemplateManifest(
// 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()) {
if(defined('E_DEPRECATED')) error_reporting((E_ALL ^ E_NOTICE) ^ E_DEPRECATED);
else error_reporting(E_ALL ^ E_NOTICE);
if(defined('E_DEPRECATED')) error_reporting(E_ALL & ~(E_DEPRECATED | E_STRICT | E_NOTICE));
else error_reporting(E_ALL & ~E_NOTICE);
}
///////////////////////////////////////////////////////////////////////////////
// POST-MANIFEST COMMANDS