mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Disable E_DEPRECATED error for sapphire/branches/2.2 if running on PHP 5.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2@111795 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
23a6e4f1ac
commit
58e7394306
3
main.php
3
main.php
@ -92,7 +92,8 @@ require_once("core/Session.php");
|
|||||||
|
|
||||||
// If this is a dev site, enable php error reporting
|
// If this is a dev site, enable php error reporting
|
||||||
if(Director::isDev()) {
|
if(Director::isDev()) {
|
||||||
error_reporting(E_ALL);
|
if(defined('E_DEPRECATED')) error_reporting(E_ALL ^ E_DEPRECATED);
|
||||||
|
else error_reporting(E_ALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
Session::start();
|
Session::start();
|
||||||
|
Loading…
Reference in New Issue
Block a user