Commit 87414785 authored by webchick's avatar webchick

Issue #2062245 by duozersk: Fixed Remove Unused local variable () from...

Issue #2062245 by duozersk: Fixed Remove Unused local variable () from /core/lib/Drupal/Core/Path/AliasManager.php.
parent 983d07be
......@@ -104,7 +104,6 @@ public function getSystemPath($path, $path_language = NULL) {
// requested URL, we might end up being unable to check if there is a path
// alias matching the URL path.
$path_language = $path_language ?: $this->languageManager->getLanguage(Language::TYPE_URL)->id;
$original_path = $path;
// Lookup the path alias first.
if (!empty($path) && $source = $this->lookupPathSource($path, $path_language)) {
$path = $source;
......@@ -261,8 +260,8 @@ protected function lookupPathAlias($path, $langcode) {
protected function lookupPathSource($path, $langcode) {
if ($this->whitelist && !isset($this->noSource[$langcode][$path])) {
// Look for the value $path within the cached $map
$source = FALSE;
if (!isset($this->lookupMap[$langcode]) || !($source = array_search($path, $this->lookupMap[$langcode]))) {
$source = isset($this->lookupMap[$langcode]) ? array_search($path, $this->lookupMap[$langcode]) : FALSE;
if (!$source) {
$args = array(
':alias' => $path,
':langcode' => $langcode,
......
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