summaryrefslogtreecommitdiff
path: root/modules/rest/controllers/rest.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-03-13 08:16:37 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-03-13 08:16:37 -0800
commitb7786fe9a3edca070cac45d0fba221033e0e3ee2 (patch)
tree28d2d43ef5ea4cfba2cf177371ce0bf2d8961591 /modules/rest/controllers/rest.php
parent8715f602bd266d41a7f084df576d2446846a328b (diff)
Changes to support updating the child elements within an album. In this change the urls of the children are sent up asan array of post fields children[0].... children[n]. If an existing child is not included it is deleted. Including a url to an child in another album will move the child. Changing the order of the children will respect the order of the children, if the sort column is 'weight'
Diffstat (limited to 'modules/rest/controllers/rest.php')
-rw-r--r--modules/rest/controllers/rest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rest/controllers/rest.php b/modules/rest/controllers/rest.php
index eed54bd4..7a9e3b0b 100644
--- a/modules/rest/controllers/rest.php
+++ b/modules/rest/controllers/rest.php
@@ -46,7 +46,7 @@ class Rest_Controller extends Controller {
$request->params = (object) $input->get();
break;
- case "post":
+ default:
$request->params = (object) $input->post();
if (isset($_FILES["file"])) {
$request->file = upload::save("file");