mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
fix typo in messages
This commit is contained in:
parent
b9c083e08b
commit
3f0275e25d
|
@ -390,11 +390,11 @@ final class SeedDMS_RestapiController { /* {{{ */
|
|||
|
||||
$id = $args['id'];
|
||||
if($id == 0) {
|
||||
return $this->renderer->json($response, array('success'=>true, 'message'=>'id is 0', 'data'=>''))->withStatus(200);
|
||||
return $this->renderer->json($response, array('success'=>true, 'message'=>'Id is 0', 'data'=>''))->withStatus(200);
|
||||
}
|
||||
$root = $dms->getRootFolder();
|
||||
if($root->getId() == $id) {
|
||||
return $this->renderer->json($response, array('success'=>true, 'message'=>'id is root folder', 'data'=>''))->withStatus(200);
|
||||
return $this->renderer->json($response, array('success'=>false, 'message'=>'Id is root folder', 'data'=>''))->withStatus(200);
|
||||
}
|
||||
$folder = $dms->getFolder($id);
|
||||
if($folder) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user