From f0a1950597b20b84a5822294a69a25d6d310b7df Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 7 Dec 2008 04:56:39 +0000 Subject: Fix a bug in the redirect after adding photos. --- core/controllers/items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/controllers') 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; } -- cgit v1.2.3