NavigationItemRenderer::renderTargetAttribute(): don't use the same name for two different variables

refs #10330
This commit is contained in:
Alexander A. Klimov 2015-12-17 16:13:12 +01:00
parent a9b818d52c
commit f6cd4794ee
1 changed files with 5 additions and 5 deletions

View File

@ -237,13 +237,13 @@ class NavigationItemRenderer
return '';
}
$actualTarget = $this->getIcingaLinkTarget($target);
if ($actualTarget !== null) {
return ' data-base-target="' . $actualTarget . '"';
$icingaTarget = $this->getIcingaLinkTarget($target);
if ($icingaTarget !== null) {
return ' data-base-target="' . $icingaTarget . '"';
}
$actualTarget = $this->getHtmlLinkTarget($target);
return ' target="' . ($actualTarget === null ? $this->view()->escape($target) : $actualTarget) . '"';
$htmlTarget = $this->getHtmlLinkTarget($target);
return ' target="' . ($htmlTarget === null ? $this->view()->escape($target) : $htmlTarget) . '"';
}
/**