Index: trunk/extensions/SemanticForms/specials/SF_RunQuery.php |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | $wgOut->setArticleBodyOnly( true ); |
73 | 73 | global $wgTitle; |
74 | 74 | $new_url = $wgTitle->getLocalURL() . "/$form_name"; |
75 | | - $text = SFUtils::printRedirectForm($new_url, $data_text, $wgRequest->getVal('wpSummary'), $save_page, $preview_page, $diff_page, $wgRequest->getCheck('wpMinoredit'), $wgRequest->getCheck('wpWatchthis'), $wgRequest->getVal('wpStarttime'), $wgRequest->getVal('wpEdittime')); |
| 75 | + $text = SFUtils::printRedirectForm($new_url, $data_text, $wgRequest->getVal('wpSummary'), false, false, false, $wgRequest->getCheck('wpMinoredit'), $wgRequest->getCheck('wpWatchthis'), $wgRequest->getVal('wpStarttime'), $wgRequest->getVal('wpEdittime')); |
76 | 76 | } else { |
77 | 77 | $text = ""; |
78 | 78 | // override the default title for this page if |
— | — | @@ -80,7 +80,7 @@ |
81 | 81 | $wgOut->setPageTitle($form_page_title); |
82 | 82 | } |
83 | 83 | if ($wgRequest->getCheck('wpTextbox1')) { |
84 | | - global $wgParser, $wgTitle; |
| 84 | + global $wgParser, $wgUser, $wgTitle; |
85 | 85 | $wgParser->mOptions = new ParserOptions(); |
86 | 86 | $wgParser->mOptions->initialiseFromUser($wgUser); |
87 | 87 | $text = $wgParser->parse($content, $wgTitle, $wgParser->mOptions)->getText(); |