summaryrefslogtreecommitdiff
path: root/core/controllers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-03-08 07:42:06 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-03-08 07:42:06 +0000
commit186eeb8e2030e7890a43b7b477a9aa54f32a024e (patch)
treebd25d793fab9bdda77eef99d0993074555ef2bc6 /core/controllers
parent3c672bd8650a0c447a447d0e6352bf849ea4c595 (diff)
Pass any additional parameters to the _edit_form method
Diffstat (limited to 'core/controllers')
-rw-r--r--core/controllers/rest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/controllers/rest.php b/core/controllers/rest.php
index b91bb0d0..b7d6e043 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) {
+ public function form_edit($resource_id, $args=null) {
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);
+ return $this->_form_edit($resource, $args);
}
/* We're adding a new item, pass along any additional parameters. */