mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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).
This commit is contained in:
parent
ee2f196f4b
commit
21d52d3852
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user