From bc7217d1ea0085ebd6ce171d231f019b8a610210 Mon Sep 17 00:00:00 2001 From: Hamish Friedlander Date: Mon, 31 Oct 2011 13:51:31 +1300 Subject: [PATCH] BUGFIX: Deprecation notices should fire in test mode too, just not in live mode --- dev/Deprecation.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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';