Changeset 6165 for sandbox/webservice/api/rest/mail/AddFolderResource.php
- Timestamp:
- 05/11/12 10:38:02 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/webservice/api/rest/mail/AddFolderResource.php
r6155 r6165 13 13 14 14 if(empty($new_name) || preg_match('/[\/\\\!\@\#\$\%\&\*\(\)]/', $new_name)) 15 throw new ResponseException("",Errors::MAIL_INVALID_NEW_FOLDER_NAME);15 Errors::runException("MAIL_INVALID_NEW_FOLDER_NAME"); 16 16 17 17 $new_id = $parent_id . $this->getImap()->imap_delimiter . $new_name; … … 21 21 $result = $this->getImap()->create_mailbox($params); 22 22 if($result != 'Ok') 23 throw new ResponseException("",Errors::MAIL_FOLDER_NOT_ADDED);23 Errors::runException("MAIL_FOLDER_NOT_ADDED"); 24 24 } 25 25
Note: See TracChangeset
for help on using the changeset viewer.