Index: trunk/extensions/PageSchemas/specials/PS_EditSchema.php |
— | — | @@ -191,9 +191,15 @@ |
192 | 192 | <p><input type="checkbox" name="f_is_list_starter" class="isListCheckbox" /> This field can hold a list of values |
193 | 193 |   </p> |
194 | 194 | <div class="delimiterInput" style="display: none" ><p>Delimiter for values (default is ","): <input type="text" name="f_delimiter_starter" /> </p></div>'; |
195 | | - foreach( $text_extensions as $text_ex ){ |
196 | | - $starter_text .= $text_ex ; |
| 195 | + if($text_extensions['smw'] != null){ |
| 196 | + $starter_text .= $text_extensions['smw']; |
197 | 197 | } |
| 198 | + if($text_extensions['sf'] != null){ |
| 199 | + $starter_text .= $text_extensions['sf']; |
| 200 | + } |
| 201 | + if($text_extensions['sd'] != null){ |
| 202 | + $starter_text .= $text_extensions['sd']; |
| 203 | + } |
198 | 204 | $starter_text .= '<p>Additional XML: |
199 | 205 | <textarea rows=4 style="width: 100%" name="f_add_xml_starter"></textarea> |
200 | 206 | </p> |
— | — | @@ -282,7 +288,7 @@ |
283 | 289 | $title = Title::newFromText( $category, NS_CATEGORY ); |
284 | 290 | $params = array(); |
285 | 291 | $params['user_id'] = $wgUser->getId(); |
286 | | - $params['page_text'] = $pageText.$Xmltext; |
| 292 | + $params['page_text'] = $Xmltext; |
287 | 293 | $jobs[] = new PSCreatePageJob( $title, $params ); |
288 | 294 | Job::batchInsert( $jobs ); |
289 | 295 | } |