From fad2d4794d02b62db362974f63d427ef67a31d62 Mon Sep 17 00:00:00 2001 From: Alexander Kochetov Date: Sun, 26 May 2013 01:51:57 +0400 Subject: [PATCH] Refactoring --- framework/yii/jui/Sortable.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/framework/yii/jui/Sortable.php b/framework/yii/jui/Sortable.php index 1b5b26b..f5854dc 100644 --- a/framework/yii/jui/Sortable.php +++ b/framework/yii/jui/Sortable.php @@ -54,10 +54,7 @@ class Sortable extends Widget */ public function run() { - $options = $this->options; - $tag = isset($options['tag']) ? $options['tag'] : 'div'; - unset($options['tag']); - echo Html::endTag($tag) . "\n"; + echo Html::endTag(isset($this->options['tag']) ? $this->options['tag'] : 'div') . "\n"; $this->registerWidget('sortable', false); } }