From 21d52d3852787a7d89ef7099d3c49cd18a614048 Mon Sep 17 00:00:00 2001 From: Gareth Foster Date: Sat, 24 Mar 2012 15:57:49 +1300 Subject: [PATCH] BUGFIX #7018 This stops an infinite loop when Depreciation::notice is called from set_dev_servers(). This doesn't stop people from setting $dev_servers directly (not that it is used in the core code anywhere). --- control/Director.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/control/Director.php b/control/Director.php index 5d00b4c45..9c2b33745 100644 --- a/control/Director.php +++ b/control/Director.php @@ -814,10 +814,6 @@ class Director implements TemplateGlobalProvider { if(isset($_SESSION['isDev']) && $_SESSION['isDev']) $result = true; if(self::$environment_type && self::$environment_type == 'dev') $result = true; - if(!empty(Director::$dev_servers)) { - Deprecation::notice('3.0', 'Director::$dev_servers doesn\'t work anymore'); - } - // Use ?isDev=1 to get development access on the live server if(!$dontTouchDB && !$result && isset($_GET['isDev'])) { if(Security::database_is_ready()) {