Index: trunk/extensions/SemanticForms/specials/SF_AddData.php |
— | — | @@ -129,7 +129,7 @@ |
130 | 130 | $page_contents = null; |
131 | 131 | } |
132 | 132 | list ($form_text, $javascript_text, $data_text, $form_page_title, $generated_page_name) = |
133 | | - $sfgFormPrinter->formHTML($form_definition, $form_submitted, $page_is_source, $page_contents, $page_title, $page_name_formula); |
| 133 | + $sfgFormPrinter->formHTML($form_definition, $form_article->getID(), $form_submitted, $page_is_source, $page_contents, $page_title, $page_name_formula); |
134 | 134 | if ($form_submitted) { |
135 | 135 | if ($page_name_formula != '') { |
136 | 136 | $target_name = $generated_page_name; |
Index: trunk/extensions/SemanticForms/specials/SF_RunQuery.php |
— | — | @@ -70,7 +70,7 @@ |
71 | 71 | $is_text_source = true; |
72 | 72 | } |
73 | 73 | list ($form_text, $javascript_text, $data_text, $form_page_title) = |
74 | | - $sfgFormPrinter->formHTML($form_definition, $form_submitted, $is_text_source, $edit_content, null, null, true, $embedded); |
| 74 | + $sfgFormPrinter->formHTML($form_definition, $form_article->getID(), $form_submitted, $is_text_source, $edit_content, null, null, true, $embedded); |
75 | 75 | $text = ""; |
76 | 76 | // override the default title for this page if |
77 | 77 | // a title was specified in the form |
Index: trunk/extensions/SemanticForms/specials/SF_EditData.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | $is_text_source = true; |
98 | 98 | } |
99 | 99 | list ($form_text, $javascript_text, $data_text, $form_page_title) = |
100 | | - $sfgFormPrinter->formHTML($form_definition, $form_submitted, $is_text_source, $edit_content, $page_title); |
| 100 | + $sfgFormPrinter->formHTML($form_definition, $form_article->getID(), $form_submitted, $is_text_source, $edit_content, $page_title); |
101 | 101 | if ($form_submitted) { |
102 | 102 | $wgOut->setArticleBodyOnly( true ); |
103 | 103 | $text = SFUtils::printRedirectForm($target_title, $data_text, $wgRequest->getVal('wpSummary'), $save_page, $preview_page, $diff_page, $wgRequest->getCheck('wpMinoredit'), $wgRequest->getCheck('wpWatchthis'), $wgRequest->getVal('wpStarttime'), $wgRequest->getVal('wpEdittime')); |