* Reformat code for accept MR.
This commit is contained in:
@@ -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}")));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user