diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-22 07:37:14 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-22 07:37:14 -0700 |
| commit | 95f3eb3aad3700c883ef6d865ae8d6512883b432 (patch) | |
| tree | db35c9264ca576f20da8d03e8c94f30fa7adc360 /modules/gallery/controllers/photos.php | |
| parent | 416470fcb2063359bcf5bd2f11c4ae82e1cf43be (diff) | |
When an album or photo is updated always return the photo/album location as
part of the response. This insures that if the internet address changes, then
the page will reload properly.
Diffstat (limited to 'modules/gallery/controllers/photos.php')
| -rw-r--r-- | modules/gallery/controllers/photos.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/controllers/photos.php b/modules/gallery/controllers/photos.php index fbff53ce..6bb5af89 100644 --- a/modules/gallery/controllers/photos.php +++ b/modules/gallery/controllers/photos.php @@ -113,7 +113,8 @@ class Photos_Controller extends Items_Controller { array("photo_title" => html::purify($photo->title)))); print json_encode( - array("result" => "success")); + array("result" => "success", + "location" => $photo->url())); } else { print json_encode( array("result" => "error", |
