mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: Deprecation notices should fire in test mode too, just not in live mode
This commit is contained in:
parent
7978dd5d40
commit
bc7217d1ea
@ -122,7 +122,8 @@ class Deprecation {
|
||||
* @return void
|
||||
*/
|
||||
public static function notice($atVersion, $string = '') {
|
||||
if(!Director::isDev()) return;
|
||||
// Never raise deprecation notices in a live environment
|
||||
if(Director::isLive()) return;
|
||||
|
||||
// If you pass #.#, assume #.#.0
|
||||
if(preg_match('/^[0-9]+\.[0-9]+$/', $atVersion)) $atVersion .= '.0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user