Commit 1db44a82 authored by Freddy's avatar Freddy

Merge branch 'editFix' into 'master'

Fix params for editPageEngine

Closes #91

See merge request !98
parents 8677d80b fb9a5663
Pipeline #1667 passed with stages
in 2 minutes and 40 seconds
......@@ -495,11 +495,15 @@ class Core extends Password {
$request = "action=edit&assert=" . $this->assert . "&maxlag=" . $this->maxlag . "&format=json&bot=&title=" . urlencode($title) .
"&text=" . urlencode($content) .
"&token=" . urlencode($token) .
"&summary=" . urlencode($summary) .
"&bot=" . urlencode($botflag) .
"&minor=" . urlencode($minorflag);
if ($noCreate === 1) {
$request .= "&minor=" . urlencode($minorflag);
"&summary=" . urlencode($summary);
if ($botflag) {
$request .= "&bot=";
}
if ($minorflag) {
$request .= "&minor=";
}
if ($noCreate) {
$request .= "&nocreate=";
}
if ($sectionnumber !== -1) {
$request .= "&section=" . urlencode($sectionnumber);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment