Siebrand has uploaded a new change for review. https://gerrit.wikimedia.org/r/106210
Change subject: Replace deprecated User::editToken with User::getEditToken (1.19) ...................................................................... Replace deprecated User::editToken with User::getEditToken (1.19) Change-Id: Ib9e8e57f3b4e1dafd6bf0b7d7a18129c243857c1 --- M CreateRedirect.body.php 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CreateRedirect refs/changes/10/106210/1 diff --git a/CreateRedirect.body.php b/CreateRedirect.body.php index fd749c9..adbbc00 100644 --- a/CreateRedirect.body.php +++ b/CreateRedirect.body.php @@ -75,7 +75,7 @@ $wpTextbox1 = "#REDIRECT [[$crRedirectTitle]]\r\n"; // POST var "wpTextbox1" stores the content that's actually going to be written. This is where we write the #REDIRECT [[Article]] stuff. We plug in $crRedirectTitle here. $wpSave = 1; $wpMinoredit = 1; // TODO: Decide on this; should this really be marked and hardcoded as a minor edit, or not? Or should we provide an option? --Digi 11/4/07 - $wpEditToken = htmlspecialchars( $wgUser->editToken() ); + $wpEditToken = htmlspecialchars( $wgUser->getEditToken() ); // 3. Put together the params that we'll use in "FauxRequest" into a single array. $crRequestParams = array( @@ -178,7 +178,7 @@ $msgPageTitle = wfMsgHtml( 'createredirect-page-title' ); $msgRedirectTo = wfMsgHtml( 'createredirect-redirect-to' ); $msgSave = wfMsgHtml( 'createredirect-save' ); - + // 2. Start rendering the output! The output is entirely the form. // It's all HTML, and may be self-explanatory. $wgOut->addHTML( wfMsgHtml( 'createredirect-instructions' ) ); -- To view, visit https://gerrit.wikimedia.org/r/106210 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib9e8e57f3b4e1dafd6bf0b7d7a18129c243857c1 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CreateRedirect Gerrit-Branch: master Gerrit-Owner: Siebrand <siebr...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits