Commit 1909da2a by Dmitry Chernikov

re `ownTemplate` => `template`

parent 7f0427d9
...@@ -142,9 +142,9 @@ class Breadcrumbs extends Widget ...@@ -142,9 +142,9 @@ class Breadcrumbs extends Widget
throw new InvalidConfigException('The "label" element is required for each link.'); throw new InvalidConfigException('The "label" element is required for each link.');
} }
if (isset($link['url'])) { if (isset($link['url'])) {
return strtr(isset($link['template']) ? $link['ownTemplate'] : $template, ['{link}' => Html::a($label, $link['url'])]); return strtr(isset($link['template']) ? $link['template'] : $template, ['{link}' => Html::a($label, $link['url'])]);
} else { } else {
return strtr(isset($link['template']) ? $link['ownTemplate'] : $template, ['{link}' => $label]); return strtr(isset($link['template']) ? $link['template'] : $template, ['{link}' => $label]);
} }
} }
} }
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