Skip to content

Commit

Permalink
Fixing issue where getCrumbList() was overwriting attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jun 29, 2010
1 parent a84db71 commit ea322b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cake/libs/view/helpers/html.php
Expand Up @@ -593,6 +593,7 @@ function getCrumbList($options = array()) {
if (!empty($this->_crumbs)) {
$result = '';
$crumbCount = count($this->_crumbs);
$ulOptions = $options;
foreach ($this->_crumbs as $which => $crumb) {
$options = array();
if (empty($crumb[1])) {
Expand All @@ -607,7 +608,7 @@ function getCrumbList($options = array()) {
}
$result .= $this->tag('li', $elementContent, $options);
}
return $this->tag('ul', $result, $options);
return $this->tag('ul', $result, $ulOptions);
} else {
return null;
}
Expand Down

0 comments on commit ea322b8

Please sign in to comment.