Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_List.php |
— | — | @@ -75,6 +75,8 @@ |
76 | 76 | $rowstart = '<li>'; |
77 | 77 | $rowend = "</li>\n"; |
78 | 78 | $plainlist = false; |
| 79 | + $finallistsep = ''; |
| 80 | + $listsep = ''; |
79 | 81 | } else { // "list" and "template" format |
80 | 82 | $header = ''; |
81 | 83 | $footer = ''; |
— | — | @@ -116,7 +118,7 @@ |
117 | 119 | $rownum = -1; |
118 | 120 | while ( $row = $res->getNext() ) { |
119 | 121 | $this->printRow( $row, $rownum, $rows_in_cur_column, $rows_in_cur_column, $plainlist, |
120 | | - $header, $footer, $rowstart, $rowend, $result, $column_width ); |
| 122 | + $header, $footer, $rowstart, $rowend, $result, $column_width, $res, $listsep, $finallistsep ); |
121 | 123 | } |
122 | 124 | |
123 | 125 | if ( $this->mOutroTemplate != '' ) { |
— | — | @@ -143,7 +145,7 @@ |
144 | 146 | } |
145 | 147 | |
146 | 148 | protected function printRow( $row, &$rownum, &$rows_in_cur_column, $rows_per_column, |
147 | | - $plainlist, $header, $footer, $rowstart, $rowend, &$result, $column_width ) { |
| 149 | + $plainlist, $header, $footer, $rowstart, $rowend, &$result, $column_width, $res, $listsep, $finallistsep ) { |
148 | 150 | $rownum++; |
149 | 151 | |
150 | 152 | if ( $this->mColumns > 1 ) { |