mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Entire UL element was being outputted directly (escaped), added to the unset list and fixed
This commit is contained in:
parent
d4b91166bc
commit
b522b1e724
1 changed files with 3 additions and 3 deletions
|
@ -719,7 +719,7 @@ class HtmlHelper extends AppHelper {
|
|||
$lastClass = $options['lastClass'];
|
||||
$separator = $options['separator'];
|
||||
$escape = $options['escape'];
|
||||
unset($options['firstClass'], $options['lastClass'], $options['separator']);
|
||||
unset($options['firstClass'], $options['lastClass'], $options['separator'], $options['escape']);
|
||||
|
||||
$crumbs = $this->_prepareCrumbs($startText, $escape);
|
||||
if (empty($crumbs)) {
|
||||
|
@ -764,11 +764,11 @@ class HtmlHelper extends AppHelper {
|
|||
'url' => '/',
|
||||
'text' => $startText
|
||||
);
|
||||
}
|
||||
}
|
||||
$startText += array('url' => '/', 'text' => __d('cake', 'Home'));
|
||||
list($url, $text) = array($startText['url'], $startText['text']);
|
||||
unset($startText['url'], $startText['text']);
|
||||
array_unshift($crumbs, array($text, $url, $startText + array('escape' => $escape)));
|
||||
array_unshift($crumbs, array($text, $url, $startText + array('escape' => $escape)));
|
||||
}
|
||||
return $crumbs;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue