Skip to content

Commit eb7f5d3

Browse files
committed
HtmlList addList bug fixed
1 parent 8310f7f commit eb7f5d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Ajax/semantic/html/content/HtmlListItem.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ protected function initContent($content){
4343
$this->setContent($content);
4444
}
4545
}
46-
public function addList($items=array()) {
46+
public function addList($items=array(),$ordered=false) {
4747
$list=new HtmlList("", $items);
48+
if($ordered)
49+
$list->setOrdered();
4850
$list->setClass("list");
4951
$this->content["list"]=$list;
5052
return $list;

0 commit comments

Comments
 (0)