]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialPhotos/actions/editphoto.php
common_redirect and clientError exits, so refactor
[quix0rs-gnu-social.git] / plugins / GNUsocialPhotos / actions / editphoto.php
index 7ac8104ae8be87fdbbcec6da290ea48021068b97..8f719919f970ffdf4255c603d368e740e7f257fa 100644 (file)
@@ -179,8 +179,7 @@ class EditphotoAction extends Action
             return;
         }
         common_redirect('/photo/' . $this->photo->id, '303');
-        $this->showForm(_('Success!'), true);
-
+        // common_redirect exits
     }
 
     function deletePhoto()
@@ -198,7 +197,6 @@ class EditphotoAction extends Action
         }
        $this->showForm(_('Success!'));
         common_redirect('/' . $this->user->nickname . '/photos/' . $oldalbum, '303');
-        return;
     }
 
 }