Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.php |
— | — | @@ -351,6 +351,11 @@ |
352 | 352 | $textarea_attrs['onKeyDown'] = $maxLengthJSCheck; |
353 | 353 | $textarea_attrs['onKeyUp'] = $maxLengthJSCheck; |
354 | 354 | } |
| 355 | + // Bug in Xml::element()? It doesn't close the textarea tag |
| 356 | + // properly if the text inside is null - set it to '' instead. |
| 357 | + if ( is_null( $cur_value ) ) { |
| 358 | + $cur_value = ''; |
| 359 | + } |
355 | 360 | $text = Xml::element( 'textarea', $textarea_attrs, $cur_value, false ); |
356 | 361 | $spanClass = "inputSpan"; |
357 | 362 | if ( $is_mandatory ) { $spanClass .= " mandatoryFieldSpan"; } |
— | — | @@ -1492,7 +1497,14 @@ |
1493 | 1498 | |
1494 | 1499 | global $wgCategoryTreeMaxDepth; |
1495 | 1500 | $wgCategoryTreeMaxDepth = 10; |
1496 | | - $tree = efCategoryTreeParserHook( $top_category, array( 'mode' => 'categories', 'depth' => 10, 'hideroot' => $hideroot ) ); |
| 1501 | + $tree = efCategoryTreeParserHook( $top_category, |
| 1502 | + array( |
| 1503 | + 'mode' => 'categories', |
| 1504 | + 'namespaces' => array( NS_CATEGORY ), |
| 1505 | + 'depth' => 10, |
| 1506 | + 'hideroot' => $hideroot, |
| 1507 | + ) |
| 1508 | + ); |
1497 | 1509 | |
1498 | 1510 | // Capitalize the first letter, if first letters always get |
1499 | 1511 | // capitalized. |
— | — | @@ -1582,7 +1594,14 @@ |
1583 | 1595 | |
1584 | 1596 | global $wgCategoryTreeMaxDepth; |
1585 | 1597 | $wgCategoryTreeMaxDepth = 10; |
1586 | | - $tree = efCategoryTreeParserHook( $top_category, array( 'mode' => 'categories', 'depth' => 10, 'hideroot' => $hideroot ) ); |
| 1598 | + $tree = efCategoryTreeParserHook( |
| 1599 | + $top_category, array( |
| 1600 | + 'mode' => 'categories', |
| 1601 | + 'namespaces' => array( NS_CATEGORY ), |
| 1602 | + 'depth' => 10, |
| 1603 | + 'hideroot' => $hideroot, |
| 1604 | + ) |
| 1605 | + ); |
1587 | 1606 | // Some string that will hopefully never show up in a category, |
1588 | 1607 | // template or field name. |
1589 | 1608 | $dummy_str = 'REPLACE THIS STRING!'; |