diff --git a/dev/Deprecation.php b/dev/Deprecation.php index 8e43baaf5..4ac2c2eae 100644 --- a/dev/Deprecation.php +++ b/dev/Deprecation.php @@ -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';