@@ -48,7 +48,7 @@ |
||
48 | 48 | public function setUp() { |
49 | 49 | parent::setUp(); |
50 | 50 | Config::inst()->update('Director', 'alternate_base_url', '/'); |
51 | - if(!self::$original_host) self::$original_host = $_SERVER['HTTP_HOST']; |
|
51 | + if (!self::$original_host) self::$original_host = $_SERVER['HTTP_HOST']; |
|
52 | 52 | $_SERVER['HTTP_HOST'] = 'www.example.org'; |
53 | 53 | } |
54 | 54 |
@@ -48,7 +48,9 @@ |
||
48 | 48 | public function setUp() { |
49 | 49 | parent::setUp(); |
50 | 50 | Config::inst()->update('Director', 'alternate_base_url', '/'); |
51 | - if(!self::$original_host) self::$original_host = $_SERVER['HTTP_HOST']; |
|
51 | + if(!self::$original_host) { |
|
52 | + self::$original_host = $_SERVER['HTTP_HOST']; |
|
53 | + } |
|
52 | 54 | $_SERVER['HTTP_HOST'] = 'www.example.org'; |
53 | 55 | } |
54 | 56 |