Commit 9d0fe710 authored by Freddy's avatar Freddy

Merge branch 'reviewfix' into 'master'

Fix review

See merge request !96
parents 1db44a82 6b7472b0
Pipeline #1695 passed with stages
in 2 minutes and 40 seconds
......@@ -784,11 +784,13 @@ class Core extends Password {
public function review($revid, $comment = "", $unapprove = 0) {
$token = $this->requireToken();
$request = "action=review&format=json&assert=" . $this->assert .
"&maxlag=" . $maxlag .
"&maxlag=" . $this->maxlag .
"&revid=" . urlencode($revid) .
"&unapprove=" . urlencode($unapprove) .
"&comment=" . urlencode($comment) .
"&token=" . urlencode($token);
if ($unapprove) {
$request = $request . "&unapprove=1";
}
$result = $this->httpRequest($request, $this->job);
$result = json_decode($result, true);
if (array_key_exists("error", $result)) {
......
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