diff options
author | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-22 01:31:15 +0000 |
---|---|---|
committer | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-22 01:31:15 +0000 |
commit | bb53a0b99f9d36d10afec914122dd262a1e442cc (patch) | |
tree | ea5253a817046261226d2989945e55522cc0321c /modules | |
parent | 01c8cdc8dd08bf859f68aaffff32fd1acf1a66ab (diff) |
* Added test for rest::request_method().
* Implemented delete in comment.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/comment/controllers/comments.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php index 511a8eda..e4825a78 100644 --- a/modules/comment/controllers/comments.php +++ b/modules/comment/controllers/comments.php @@ -103,7 +103,8 @@ class Comments_Controller extends REST_Controller { * @see Rest_Controller::_delete($resource) */ public function _delete($comment) { - rest::http_status(rest::METHOD_NOT_ALLOWED); + $comment->delete(); + rest::http_status(rest::OK); } /** |