Commit fad2d479 by Alexander Kochetov

Refactoring

parent 0fd30598
......@@ -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);
}
}
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