From bb53a0b99f9d36d10afec914122dd262a1e442cc Mon Sep 17 00:00:00 2001 From: Jozef Selesi Date: Sat, 22 Nov 2008 01:31:15 +0000 Subject: * Added test for rest::request_method(). * Implemented delete in comment. --- modules/comment/controllers/comments.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/comment/controllers/comments.php') 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); } /** -- cgit v1.2.3