* Reformat code for accept MR.

This commit is contained in:
dingguodong
2021-09-03 13:39:54 +08:00
parent 13506c3cbd
commit c80ce42a12
+2 -1
View File
@@ -187,9 +187,10 @@ class mr extends control
{
return $this->send(array('result' => 'success', 'message' => $this->lang->mr->mergeSuccess, 'locate' => helper::createLink('mr', 'browse')));
}
/* The type of variable `$rawMR->message` is string. This is different with apiCreateMR. */
/* The type of variable `$rawMR->message` is string. This is different with apiCreateMR. */
if(isset($rawMR->message)) return $this->send(array('result' => 'fail', 'message' => sprintf($this->lang->mr->apiError->sudo, $rawMR->message), 'locate' => helper::createLink('mr', 'view', "mr={$MRID}")));
return $this->send(array('result' => 'fail', 'message' => $this->lang->mr->mergeFailed, 'locate' => helper::createLink('mr', 'view', "mr={$MRID}")));
}