Skip to content

Commit

Permalink
Fix category edits
Browse files Browse the repository at this point in the history
  • Loading branch information
maskara committed Aug 13, 2018
1 parent 634814e commit 13c71e1
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ public boolean pageExists(String pageName) throws IOException {
public String edit(String editToken, String processedPageContent, String filename, String summary) throws IOException {
return api.action("edit")
.param("title", filename)
.param("token", editToken)
.param("token", getEditToken())
.param("centralauthtoken", getCentralAuthToken())
.param("text", processedPageContent)
.param("summary", summary)
.post()
Expand All @@ -283,7 +284,8 @@ public String edit(String editToken, String processedPageContent, String filenam
public String appendEdit(String editToken, String processedPageContent, String filename, String summary) throws IOException {
return api.action("edit")
.param("title", filename)
.param("token", editToken)
.param("token", getEditToken())
.param("centralauthtoken", getCentralAuthToken())
.param("appendtext", processedPageContent)
.param("summary", summary)
.post()
Expand All @@ -295,7 +297,8 @@ public String appendEdit(String editToken, String processedPageContent, String f
public String prependEdit(String editToken, String processedPageContent, String filename, String summary) throws IOException {
return api.action("edit")
.param("title", filename)
.param("token", editToken)
.param("token", getEditToken())
.param("centralauthtoken", getCentralAuthToken())
.param("prependtext", processedPageContent)
.param("summary", summary)
.post()
Expand Down

0 comments on commit 13c71e1

Please sign in to comment.