I figured there was something like that I could use, but wasn’t sure if I’d be able to figure it out. (remember, is noob)
I’m guessing it would be something along the lines of
Title::moveTo | ( | $param2, |
$auth = true, | ||
$reason = $param3, | ||
$createRedirect = true | ||
) | ; |
But I’m assuming that would just move whatever the current page is over to the page listed in param2? How could I tell it to move a page listed in $param1 over to $param2?
Thanks!
From: mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] On Behalf Of Liangent
Sent: Sunday, April 27, 2014 12:20 PM
To: MediaWiki API announcements & discussion
Subject: Re: [Mediawiki-api] Bad or Invalid Token in Extension
Well you can just use Title::moveTo() directly.
On Apr 28, 2014 1:13 AM, "Justin Maldonado" <info@keyappraising.com> wrote:
Yeah, that was just a typo copying the code over. It is actually just the one $token variable. Same with the double quotes. I’ve tried no quotes as well though, along with single quotes, smiley faces, hearts, etc.
I was also going to do some more urlencoding, but just wanted to get the basic page move working first.
Thanks though, I appreciate you taking a look. I have no doubt it could be something as simple as that.
From: mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] On Behalf Of Niklas Keller
Sent: Sunday, April 27, 2014 11:56 AM
To: MediaWiki API announcements & discussion
Subject: Re: [Mediawiki-api] Bad or Invalid Token in Extension
I don't have enough time right now to have a deeper look at your code, but:
$token = $token = $wgUser->editToken();
Although this isn't an error, it's still unnecessary.
Next, are you really using these quotes: ” instead of ". I think this happened when you copied the code because it'll result in an syntax error. Additionally, you shouldn't put pure variables into quotes, there's no reason why I would do so.
You should urlencode all parameters, not just the token.
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api