diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-03 16:50:05 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-03 16:53:03 +0200 |
commit | b5a145b297ee933dc4c9d7e016a57feba91bf8ac (patch) | |
tree | 4999e4053582a73b2a07c030afd3877f4937717b /apps/files_sharing/ajax/resetmailtemplate.php | |
parent | 37afab87b56fa7b2a1b0e751df72e9624663f94f (diff) | |
download | nextcloud-server-b5a145b297ee933dc4c9d7e016a57feba91bf8ac.tar.gz nextcloud-server-b5a145b297ee933dc4c9d7e016a57feba91bf8ac.zip |
convert mail template editor to app framework for a restful api
Diffstat (limited to 'apps/files_sharing/ajax/resetmailtemplate.php')
-rw-r--r-- | apps/files_sharing/ajax/resetmailtemplate.php | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/apps/files_sharing/ajax/resetmailtemplate.php b/apps/files_sharing/ajax/resetmailtemplate.php deleted file mode 100644 index 4050235bc5d..00000000000 --- a/apps/files_sharing/ajax/resetmailtemplate.php +++ /dev/null @@ -1,24 +0,0 @@ -<?php - -OC_JSON::checkAdminUser(); -OCP\JSON::callCheck(); - -if(!\OCP\App::isEnabled('files_sharing')){ - \OCP\Response::setStatus(410); // GONE -} - -$l=OC_L10N::get('core'); - -// post data -if ( isset( $_POST['theme'] ) && isset( $_POST['template'] ) ) { - - $template = new \OCA\Files_Sharing\MailTemplate( $_POST['theme'], $_POST['template'] ); - try { - $template->reset(); - \OC_Response::setStatus(200); // ok - } catch (\OCP\Files\NotPermittedException $ex) { - \OC_Response::setStatus(403); // forbidden - } - exit(); -} -\OC_Response::setStatus(404); // not found |