merged branch jfsimon/issue-7185-2.2 (PR #7390)
This PR was merged into the 2.2 branch.
Commits
-------
53cf12b
replaced new occurences of 'Request::create()' with '::create()'
Discussion
----------
[2.2] sub-requests are now created with the same class as their parent
Following #7381
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #7185, #7186
This commit is contained in:
commit
d9181ba5b0
@ -89,7 +89,7 @@ class InlineFragmentRenderer extends RoutableFragmentRenderer
|
||||
// the sub-request is internal
|
||||
$server['REMOTE_ADDR'] = '127.0.0.1';
|
||||
|
||||
$subRequest = Request::create($uri, 'get', array(), $cookies, array(), $server);
|
||||
$subRequest = $request::create($uri, 'get', array(), $cookies, array(), $server);
|
||||
if ($session = $request->getSession()) {
|
||||
$subRequest->setSession($session);
|
||||
}
|
||||
|
Reference in New Issue
Block a user