mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Deprecation class throws notice on PHP 5.2
Checks on constants must be within quotes.
This commit is contained in:
parent
8f96ea7c9c
commit
3c5fd14f38
@ -133,7 +133,7 @@ class Deprecation {
|
||||
|
||||
// Get the level to raise the notice as
|
||||
$level = self::$notice_level;
|
||||
if (!$level) $level = defined(E_USER_DEPRECATED) ? E_USER_DEPRECATED : E_USER_NOTICE;
|
||||
if (!$level) $level = defined('E_USER_DEPRECATED') ? E_USER_DEPRECATED : E_USER_NOTICE;
|
||||
|
||||
// Then raise the notice
|
||||
if(substr($string,-1) != '.') $string .= ".";
|
||||
|
Loading…
Reference in New Issue
Block a user