From 7f0427d911112ca4be9d0ef5617649987ba3f064 Mon Sep 17 00:00:00 2001 From: Dmitry Chernikov <4ernikoff@gmail.com> Date: Tue, 17 Jun 2014 20:26:16 +0300 Subject: [PATCH] `ownTemplate` => `template` --- framework/widgets/Breadcrumbs.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/widgets/Breadcrumbs.php b/framework/widgets/Breadcrumbs.php index 8179500..16f1ec8 100644 --- a/framework/widgets/Breadcrumbs.php +++ b/framework/widgets/Breadcrumbs.php @@ -29,7 +29,7 @@ use yii\helpers\Html; * [ * 'label' => 'Post Category', * 'url' => ['post-category/view', 'id' => 10], - * 'ownTemplate' => '
  • {link}
  • \n', // template for this link only + * 'template' => '
  • {link}
  • \n', // template for this link only * ], * ['label' => 'Sample Post', 'url' => ['post/edit', 'id' => 1]], * 'Edit', @@ -82,7 +82,7 @@ class Breadcrumbs extends Widget * [ * 'label' => 'label of the link', // required * 'url' => 'url of the link', // optional, will be processed by Url::to() - * 'ownTemplate' => 'own template of the current item', // optional, if not set $this->itemTemplate will be used + * 'template' => 'own template of the item', // optional, if not set $this->itemTemplate will be used * ] * ~~~ * @@ -142,9 +142,9 @@ class Breadcrumbs extends Widget throw new InvalidConfigException('The "label" element is required for each link.'); } if (isset($link['url'])) { - return strtr(isset($link['ownTemplate']) ? $link['ownTemplate'] : $template, ['{link}' => Html::a($label, $link['url'])]); + return strtr(isset($link['template']) ? $link['ownTemplate'] : $template, ['{link}' => Html::a($label, $link['url'])]); } else { - return strtr(isset($link['ownTemplate']) ? $link['ownTemplate'] : $template, ['{link}' => $label]); + return strtr(isset($link['template']) ? $link['ownTemplate'] : $template, ['{link}' => $label]); } } }