diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-07 04:56:39 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-07 04:56:39 +0000 |
commit | f0a1950597b20b84a5822294a69a25d6d310b7df (patch) | |
tree | 3b7c050e0ee4a05001dfe0a941bba767a2e6950d | |
parent | 36cda412f48ada1a059523685094687b9c02f3b8 (diff) |
Fix a bug in the redirect after adding photos.
-rw-r--r-- | core/controllers/items.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/items.php b/core/controllers/items.php index 6fc11f76..a5dd5f1e 100644 --- a/core/controllers/items.php +++ b/core/controllers/items.php @@ -88,7 +88,7 @@ class Items_Controller extends REST_Controller { $this->input->post("title", $this->input->post("name")), $this->input->post("description"), $owner_id); - url::redirect("{$new_item->type}s/{$new_item->id}"); + url::redirect("photos/{$photo->id}"); } break; } |