Index: trunk/extensions/SemanticForms/specials/SF_CreateClass.php |
— | — | @@ -39,13 +39,13 @@ |
40 | 40 | $form_name = trim($wgRequest->getVal("form_name")); |
41 | 41 | $category_name = trim($wgRequest->getVal("category_name")); |
42 | 42 | if ($template_name == '' | $form_name == '' || $category_name == '') { |
43 | | - $text = "<p>" . wfMsg('sf_createclass_missingvalues') . "</p>"; |
| 43 | + $text = Xml::element('p', null, wfMsg('sf_createclass_missingvalues')); |
44 | 44 | $wgOut->addHTML($text); |
45 | 45 | return; |
46 | 46 | } |
47 | 47 | $fields = array(); |
48 | 48 | $jobs = array(); |
49 | | - for ($i = 1; $i <= 20; $i++) { |
| 49 | + for ($i = 1; $i <= 25; $i++) { |
50 | 50 | # cycle through the query values, setting the appropriate local variables |
51 | 51 | $property_name = trim($wgRequest->getVal("property_name_$i")); |
52 | 52 | if ($property_name != '') { |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | $jobs[] = new SFCreatePageJob( $category_title, $params ); |
95 | 95 | Job::batchInsert( $jobs ); |
96 | 96 | |
97 | | - $text = "<p>" . wfMsg('sf_createclass_success') . "</p>"; |
| 97 | + $text = Xml::element('p', null, wfMsg('sf_createclass_success')); |
98 | 98 | $wgOut->addHTML($text); |
99 | 99 | return; |
100 | 100 | } |
— | — | @@ -144,7 +144,7 @@ |
145 | 145 | </tr> |
146 | 146 | |
147 | 147 | END; |
148 | | - for ($i = 1; $i <= 20; $i++) { |
| 148 | + for ($i = 1; $i <= 25; $i++) { |
149 | 149 | $text .=<<<END |
150 | 150 | <tr> |
151 | 151 | <td>$i. <input type="text" size="25" name="property_name_$i" /></td> |
— | — | @@ -157,6 +157,7 @@ |
158 | 158 | $text .= " <option>$label</option>\n"; |
159 | 159 | } |
160 | 160 | $text .=<<<END |
| 161 | + </select> |
161 | 162 | </td> |
162 | 163 | <td><input type="text" size="25" name="allowed_values_$i" /></td> |
163 | 164 | <td><input type="checkbox" name="is_list_$i" /></td> |