]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
action labels depend on status 1367/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Tue, 18 Aug 2015 16:13:30 +0000 (18:13 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Tue, 18 Aug 2015 16:13:30 +0000 (18:13 +0200)
src/Wallabag/CoreBundle/Controller/EntryController.php

index 6944a686e5d917a8feca04de5298aa6f68b95d72..93ce650e16abd2075fac5b46f0d4e68734ecec62 100644 (file)
@@ -265,7 +265,7 @@ class EntryController extends Controller
 
         $this->get('session')->getFlashBag()->add(
             'notice',
-            'Entry archived'
+            'Entry ' . ($entry->isArchived() ? 'archived' : 'unarchived')
         );
 
         return $this->redirect($request->headers->get('referer'));
@@ -290,7 +290,7 @@ class EntryController extends Controller
 
         $this->get('session')->getFlashBag()->add(
             'notice',
-            'Entry starred'
+            'Entry ' . ($entry->isStarred() ? 'starred' : 'unstarred')
         );
 
         return $this->redirect($request->headers->get('referer'));