From a390ba77a951567a7605b7339c209796b54c51b5 Mon Sep 17 00:00:00 2001 From: Larry Garfield <larry@garfieldtech.com> Date: Fri, 4 May 2012 01:09:46 -0500 Subject: [PATCH] Clean up the UrlMatcher now that we don't need to do as much hackery with the path. It's handled elsewhere. --- core/lib/Drupal/Core/UrlMatcher.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/core/lib/Drupal/Core/UrlMatcher.php b/core/lib/Drupal/Core/UrlMatcher.php index fa4577d9e462..ca25b7d5eff0 100644 --- a/core/lib/Drupal/Core/UrlMatcher.php +++ b/core/lib/Drupal/Core/UrlMatcher.php @@ -86,15 +86,7 @@ public function getRequest() { * @api */ public function match($pathinfo) { - - $dpathinfo = $this->request->attributes->get('system_path'); - - if (!$dpathinfo) { - // Symfony uses a prefixing / but we don't yet. - $dpathinfo = ltrim($pathinfo, '/'); - } - - if ($router_item = $this->matchDrupalItem($dpathinfo)) { + if ($router_item = $this->matchDrupalItem($pathinfo)) { $ret = $this->convertDrupalItem($router_item); // Stash the router item in the attributes while we're transitioning. $ret['drupal_menu_item'] = $router_item; @@ -145,6 +137,5 @@ protected function convertDrupalItem($router_item) { $route[$k] = $v; } return $route; - return new Route($router_item['href'], $route); } } -- GitLab