Nikerabbit has submitted this change and it was merged.

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(-)

Approvals:
  Nikerabbit: Verified; Looks good to me, approved



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: merged
Gerrit-Change-Id: Ib9e8e57f3b4e1dafd6bf0b7d7a18129c243857c1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CreateRedirect
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
Gerrit-Reviewer: Daniel Friesen <[email protected]>
Gerrit-Reviewer: IAlex <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to