diff --git a/core/lib/Drupal/Core/StreamWrapper/LocalStream.php b/core/lib/Drupal/Core/StreamWrapper/LocalStream.php index 54e7e7a..ed27917 100644 --- a/core/lib/Drupal/Core/StreamWrapper/LocalStream.php +++ b/core/lib/Drupal/Core/StreamWrapper/LocalStream.php @@ -87,7 +87,7 @@ protected function getTarget($uri = NULL) { $uri = $this->uri; } - list($scheme, $target) = explode('://', $uri, 2); + list( , $target) = explode('://', $uri, 2); // Remove erroneous leading or trailing, forward-slashes and backslashes. return trim($target, '\/'); @@ -403,8 +403,8 @@ public function rename($from_uri, $to_uri) { * @see drupal_dirname() */ public function dirname($uri = NULL) { - list($scheme, $target) = explode('://', $uri, 2); - $target = $this->getTarget($uri); + list($scheme, ) = explode('://', $uri, 2); + $target = $this->getTarget($uri); $dirname = dirname($target); if ($dirname == '.') {