From ed7b7db8b92135c68364fe8c400f45e2af10ea25 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Tue, 17 Dec 2013 03:47:15 +0100 Subject: [PATCH] LinkSorter did not use Html options fixes #1556 --- framework/yii/widgets/LinkSorter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/yii/widgets/LinkSorter.php b/framework/yii/widgets/LinkSorter.php index 7104c18..bfafcea 100644 --- a/framework/yii/widgets/LinkSorter.php +++ b/framework/yii/widgets/LinkSorter.php @@ -34,6 +34,7 @@ class LinkSorter extends Widget public $attributes; /** * @var array HTML attributes for the sorter container tag. + * See [[yii\helpers\Html::ul()]] for special attributes. */ public $options = ['class' => 'sorter']; @@ -68,6 +69,6 @@ class LinkSorter extends Widget foreach ($attributes as $name) { $links[] = $this->sort->link($name); } - return Html::ul($links, ['encode' => false]); + return Html::ul($links, array_merge($this->options, ['encode' => false])); } }