r51484 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51483‎ | r51484 | r51485 >
Date:00:58, 5 June 2009
Author:yaron
Status:deferred
Tags:
Comment:
Fixed PHP errors
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_RunQuery.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_RunQuery.php
@@ -71,7 +71,7 @@
7272 $wgOut->setArticleBodyOnly( true );
7373 global $wgTitle;
7474 $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'));
7676 } else {
7777 $text = "";
7878 // override the default title for this page if
@@ -80,7 +80,7 @@
8181 $wgOut->setPageTitle($form_page_title);
8282 }
8383 if ($wgRequest->getCheck('wpTextbox1')) {
84 - global $wgParser, $wgTitle;
 84+ global $wgParser, $wgUser, $wgTitle;
8585 $wgParser->mOptions = new ParserOptions();
8686 $wgParser->mOptions->initialiseFromUser($wgUser);
8787 $text = $wgParser->parse($content, $wgTitle, $wgParser->mOptions)->getText();

Status & tagging log