tosfos has uploaded a new change for review.
https://gerrit.wikimedia.org/r/189633
Change subject: Send $_SESSION to FauxRequest to correctly set wpEditToken on
form
......................................................................
Send $_SESSION to FauxRequest to correctly set wpEditToken on form
Change-Id: I1607be3b681e687c535d3e6e017dc710624c86dd
---
M includes/SF_AutoeditAPI.php
1 file changed, 2 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticForms
refs/changes/33/189633/1
diff --git a/includes/SF_AutoeditAPI.php b/includes/SF_AutoeditAPI.php
index 2d0135a..44f385b 100644
--- a/includes/SF_AutoeditAPI.php
+++ b/includes/SF_AutoeditAPI.php
@@ -836,8 +836,7 @@
if ( $preloadContent !== '' ) {
// Spoof $wgRequest for SFFormPrinter::formHTML().
- $wgRequest = new FauxRequest( $this->mOptions, true );
-
+ $wgRequest = new FauxRequest( $this->mOptions, true,
$_SESSION );
// call SFFormPrinter::formHTML to get at the form html
of the existing page
list ( $formHTML, $formJS, $targetContent,
$form_page_title, $generatedTargetNameFormula ) =
$sfgFormPrinter->formHTML(
@@ -863,7 +862,7 @@
}
// Spoof $wgRequest for SFFormPrinter::formHTML().
- $wgRequest = new FauxRequest( $this->mOptions, true );
+ $wgRequest = new FauxRequest( $this->mOptions, true, $_SESSION
);
// get wikitext for submitted data and form
list ( $formHTML, $formJS, $targetContent, $generatedFormName,
$generatedTargetNameFormula ) =
--
To view, visit https://gerrit.wikimedia.org/r/189633
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1607be3b681e687c535d3e6e017dc710624c86dd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticForms
Gerrit-Branch: master
Gerrit-Owner: tosfos <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits