Commit 1c96f114 authored by deviantintegral's avatar deviantintegral
Browse files

Remove old kernel instantiation.

parent c030577c
......@@ -62,7 +62,6 @@ public function on403Html(FlattenException $exception, Request $request) {
$destination = ltrim($request->getPathInfo(), '/');
$request = Request::create('/' . $path, 'GET', array('destination' => $destination));
$kernel = new DrupalKernel();
$response = $kernel->handle($request, DrupalKernel::SUB_REQUEST);
$response->setStatusCode(403, 'Access denied');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment