Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -539,11 +539,11 @@ |
540 | 540 | } |
541 | 541 | // If $curPlaceholder is set, it means we want to insert a |
542 | 542 | // multiple template form's HTML into the main form's HTML. |
543 | | - // So, the HTML will be stored in $multipleTemplateString. |
544 | | - if ( $allow_multiple ) { |
545 | | - $multipleTemplateString .= "\t" . '<div class="multipleTemplateWrapper">' . "\n"; |
546 | | - $multipleTemplateString .= "\t" . '<div class="multipleTemplateList">' . "\n"; |
547 | | - } |
| 543 | + // So, the HTML will be stored in $multipleTemplateString. |
| 544 | + if ( $allow_multiple ) { |
| 545 | + $multipleTemplateString .= "\t" . '<div class="multipleTemplateWrapper">' . "\n"; |
| 546 | + $multipleTemplateString .= "\t" . '<div class="multipleTemplateList">' . "\n"; |
| 547 | + } |
548 | 548 | } |
549 | 549 | if ( $curPlaceholder == null ) { |
550 | 550 | $form_text .= $multipleTemplateString; |
— | — | @@ -955,7 +955,7 @@ |
956 | 956 | } else { |
957 | 957 | $sfgTabIndex++; |
958 | 958 | $sfgFieldNum++; |
959 | | - if ( $cur_value === '' || is_null( $cur_value ) ) { |
| 959 | + if ( $cur_value === '' || is_null( $cur_value ) ) { |
960 | 960 | $default_value = '!free_text!'; |
961 | 961 | } else { |
962 | 962 | $default_value = $cur_value; |
— | — | @@ -1537,11 +1537,11 @@ |
1538 | 1538 | $form_text .= SFFormUtils::formBottom( $form_is_disabled ); |
1539 | 1539 | } |
1540 | 1540 | |
1541 | | - $page_article = new Article( $this->mPageTitle, 0 ); |
1542 | 1541 | |
1543 | 1542 | if ( !$is_query ) { |
1544 | 1543 | $form_text .= Html::hidden( 'wpStarttime', wfTimestampNow() ); |
1545 | | - $form_text .= Html::hidden( 'wpEdittime', $page_article->getTimestamp() ); |
| 1544 | + $article = new Article( $this->mPageTitle, 0 ); |
| 1545 | + $form_text .= Html::hidden( 'wpEdittime', $article->getTimestamp() ); |
1546 | 1546 | } |
1547 | 1547 | |
1548 | 1548 | $form_text .= "\t</form>\n"; |
— | — | @@ -1565,8 +1565,9 @@ |
1566 | 1566 | // Send the autocomplete values to the browser, along with the |
1567 | 1567 | // mappings of which values should apply to which fields. |
1568 | 1568 | // If doing a replace, the data text is actually the modified original page |
1569 | | - if ( $wgRequest->getCheck( 'partial' ) ) |
| 1569 | + if ( $wgRequest->getCheck( 'partial' ) ) { |
1570 | 1570 | $data_text = $existing_page_content; |
| 1571 | + } |
1571 | 1572 | |
1572 | 1573 | if ( !$is_embedded ) { |
1573 | 1574 | $form_page_title = $wgParser->recursiveTagParse( str_replace( "{{!}}", "|", $form_page_title ) ); |
— | — | @@ -1592,7 +1593,7 @@ |
1593 | 1594 | } |
1594 | 1595 | |
1595 | 1596 | /** |
1596 | | - * Create the HTML and Javascript to display this field within a form |
| 1597 | + * Create the HTML and Javascript to display this field within a form. |
1597 | 1598 | */ |
1598 | 1599 | function formFieldHTML( $form_field, $cur_value ) { |
1599 | 1600 | // Also get the actual field, with all the semantic information |