From cc36b421d0686a9899c56da62c768a09dafcb9e9 Mon Sep 17 00:00:00 2001 From: Larry Garfield Date: Wed, 9 May 2012 01:21:31 -0500 Subject: [PATCH] Remove redundant front page handling code. --- .../Drupal/Core/EventSubscriber/PathSubscriber.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php index 0713b2fdd52..1192c4a676f 100644 --- a/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php @@ -33,18 +33,9 @@ class PathSubscriber extends PathListenerBase implements EventSubscriberInterfac $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); } /**