diff options
Diffstat (limited to 'ajax/createfolder.php')
-rw-r--r-- | ajax/createfolder.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ajax/createfolder.php b/ajax/createfolder.php index a53b60d92..cbb3d89aa 100644 --- a/ajax/createfolder.php +++ b/ajax/createfolder.php @@ -27,8 +27,8 @@ $l = OC_L10N::get('news'); if(!$folderid) { OCP\JSON::error(array('data' => array('message' => $l->t('Error adding folder.')))); OCP\Util::writeLog('news','ajax/createfolder.php: Error adding folder: '.$_POST['name'], OCP\Util::ERROR); - exit(); } - -//TODO: replace the following with the success case. see contact/ajax/createaddressbook.php for inspirations -OCP\JSON::error(array('data' => array('message' => $l->t('Error adding folder.')))); +else { + //TODO: replace the following with a real success case. see contact/ajax/createaddressbook.php for inspirations + OCP\JSON::success(array('data' => array('message' => $l->t('Folder added!')))); +}
\ No newline at end of file |