]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialPhotos/actions/editphoto.php
Notifications and deleting albums
[quix0rs-gnu-social.git] / plugins / GNUsocialPhotos / actions / editphoto.php
index e32b5fe01d7e3d63e25c9d9002f8f50eea346af5..34f41a275257840cfdf67c2b825b4619e7881749 100644 (file)
@@ -76,6 +76,12 @@ class EditphotoAction extends Action
             return;
         } 
 
+        //showForm() data
+        if(!empty($this->msg)) {
+            $class = ($this->success) ? 'success' : 'error';
+            $this->element('p', array('class' => $class), $this->msg);
+        }
+
         $this->element('img', array('src' => $this->photo->uri));
         $this->elementStart('form', array('method' => 'post',
                                           'action' => '/editphoto/' . $this->photo->id));
@@ -173,7 +179,7 @@ class EditphotoAction extends Action
             return;
         }
         common_redirect('/photo/' . $this->photo->id, '303');
-        $this->showForm(_('Success!'));
+        $this->showForm(_('Success!'), true);
 
     }