diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-08 07:55:37 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-08 07:55:37 +0000 |
commit | bf6c814e81a00d6aec3cacdecd3b93b90cf73a3e (patch) | |
tree | c4c708d2fbb5f4b31efc8c4a99bc5a0c43190d1a /core/controllers | |
parent | 186eeb8e2030e7890a43b7b477a9aa54f32a024e (diff) |
Undo... pass any additional parameters to the _edit_form method
Diffstat (limited to 'core/controllers')
-rw-r--r-- | core/controllers/rest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/controllers/rest.php b/core/controllers/rest.php index b7d6e043..b91bb0d0 100644 --- a/core/controllers/rest.php +++ b/core/controllers/rest.php @@ -106,7 +106,7 @@ class REST_Controller extends Controller { } /* We're editing an existing item, load it from the database. */ - public function form_edit($resource_id, $args=null) { + public function form_edit($resource_id) { if ($this->resource_type == null) { throw new Exception("@todo ERROR_MISSING_RESOURCE_TYPE"); } @@ -117,7 +117,7 @@ class REST_Controller extends Controller { return Kohana::show_404(); } - return $this->_form_edit($resource, $args); + return $this->_form_edit($resource); } /* We're adding a new item, pass along any additional parameters. */ |