Commit cc36b421 authored by Crell's avatar Crell
Browse files

Remove redundant front page handling code.

parent bf41cd2e
......@@ -33,18 +33,9 @@ public function onKernelRequestPathResolve(GetResponseEvent $event) {
$path = $this->extractPath($request);
if (empty($path)) {
// @todo Temporary hack. Fix when configuration is injectable.
$path = variable_get('site_frontpage', 'user');
}
$system_path = drupal_get_normal_path($path);
$path = drupal_get_normal_path($path);
// Do our fancy frontpage logic.
if (empty($system_path)) {
$system_path = variable_get('site_frontpage', 'user');
}
$this->setPath($request, $system_path);
$this->setPath($request, $path);
}
/**
......
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