NavigationItemRenderer::renderTargetAttribute(): don't use the same name for two different variables
refs #10330
This commit is contained in:
parent
a9b818d52c
commit
f6cd4794ee
|
@ -237,13 +237,13 @@ class NavigationItemRenderer
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$actualTarget = $this->getIcingaLinkTarget($target);
|
$icingaTarget = $this->getIcingaLinkTarget($target);
|
||||||
if ($actualTarget !== null) {
|
if ($icingaTarget !== null) {
|
||||||
return ' data-base-target="' . $actualTarget . '"';
|
return ' data-base-target="' . $icingaTarget . '"';
|
||||||
}
|
}
|
||||||
|
|
||||||
$actualTarget = $this->getHtmlLinkTarget($target);
|
$htmlTarget = $this->getHtmlLinkTarget($target);
|
||||||
return ' target="' . ($actualTarget === null ? $this->view()->escape($target) : $actualTarget) . '"';
|
return ' target="' . ($htmlTarget === null ? $this->view()->escape($target) : $htmlTarget) . '"';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue