]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialPhotos/actions/editphoto.php
Matt's demands (ticket #217)
[quix0rs-gnu-social.git] / plugins / GNUsocialPhotos / actions / editphoto.php
index 2ebcd97aff8f141acb3f1d31a0e35d139598edf9..eacd09156da9100c326c7fb76091d60a84b1c93a 100644 (file)
@@ -172,12 +172,16 @@ class EditphotoAction extends Action
             $this->showForm(_('Error: The photo data is not valid.'));
             return;
         }
+        common_redirect('/photo/' . $this->photo->id, '303');
         $this->showForm(_('Success!'));
 
     }
 
     function deletePhoto()
     {
+        //For redirection
+        $oldalbum = $this->album_id;
+
         $this->photo->title = "";
         $this->photo->photo_description = "";
         $this->photo->profile_id = 0;
@@ -192,6 +196,7 @@ class EditphotoAction extends Action
             return;
         }
         $this->showForm(_('Success!'));
+        common_redirect('/' . $this->user->nickname . '/photos/' . $oldalbum, '303');
         return;
     }