mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-25 05:59:23 +02:00
BUG Remove reference to $_SERVER within FakeController
This commit is contained in:
parent
695194546d
commit
ff47bc03d7
|
@ -21,12 +21,7 @@ class FakeController extends Controller
|
|||
|
||||
$this->pushCurrent();
|
||||
|
||||
$request = new HTTPRequest(
|
||||
(isset($_SERVER['X-HTTP-Method-Override']))
|
||||
? $_SERVER['X-HTTP-Method-Override']
|
||||
: $_SERVER['REQUEST_METHOD'],
|
||||
'/'
|
||||
);
|
||||
$request = new HTTPRequest('GET', '/');
|
||||
$this->setRequest($request);
|
||||
|
||||
$this->setResponse(new HTTPResponse());
|
||||
|
|
Loading…
Reference in New Issue
Block a user