X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FRouting%2FRouteCompiler.php;h=9c430f6811cb46ef523a5c976986c7f0446b1c2f;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=e4aef439806cd8b3785eb8c764d98632bb871b81;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Routing/RouteCompiler.php b/web/core/lib/Drupal/Core/Routing/RouteCompiler.php index e4aef4398..9c430f681 100644 --- a/web/core/lib/Drupal/Core/Routing/RouteCompiler.php +++ b/web/core/lib/Drupal/Core/Routing/RouteCompiler.php @@ -130,7 +130,7 @@ class RouteCompiler extends SymfonyRouteCompiler implements RouteCompilerInterfa // Remove placeholders with default values from the outline, so that they // will still match. - $remove = array_map(function($a) { + $remove = array_map(function ($a) { return '/{' . $a . '}'; }, array_keys($defaults)); $path = str_replace($remove, '', $path);