aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller/EntryController.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-08-18 18:13:30 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-08-18 18:13:30 +0200
commitc7132736196e5c0ba8c498a821e03455c3d55173 (patch)
tree76a5d8fa41c3b565d95a578fc98c0a502f13824a /src/Wallabag/CoreBundle/Controller/EntryController.php
parentc3cb46809b54b2f74d00de7330e06be45776e61e (diff)
downloadwallabag-c7132736196e5c0ba8c498a821e03455c3d55173.tar.gz
wallabag-c7132736196e5c0ba8c498a821e03455c3d55173.tar.zst
wallabag-c7132736196e5c0ba8c498a821e03455c3d55173.zip
action labels depend on status
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/EntryController.php')
-rw-r--r--src/Wallabag/CoreBundle/Controller/EntryController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php
index 6944a686..93ce650e 100644
--- a/src/Wallabag/CoreBundle/Controller/EntryController.php
+++ b/src/Wallabag/CoreBundle/Controller/EntryController.php
@@ -265,7 +265,7 @@ class EntryController extends Controller
265 265
266 $this->get('session')->getFlashBag()->add( 266 $this->get('session')->getFlashBag()->add(
267 'notice', 267 'notice',
268 'Entry archived' 268 'Entry ' . ($entry->isArchived() ? 'archived' : 'unarchived')
269 ); 269 );
270 270
271 return $this->redirect($request->headers->get('referer')); 271 return $this->redirect($request->headers->get('referer'));
@@ -290,7 +290,7 @@ class EntryController extends Controller
290 290
291 $this->get('session')->getFlashBag()->add( 291 $this->get('session')->getFlashBag()->add(
292 'notice', 292 'notice',
293 'Entry starred' 293 'Entry ' . ($entry->isStarred() ? 'starred' : 'unstarred')
294 ); 294 );
295 295
296 return $this->redirect($request->headers->get('referer')); 296 return $this->redirect($request->headers->get('referer'));