diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2015-08-19 11:20:22 +0200 |
---|---|---|
committer | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2015-08-19 11:20:22 +0200 |
commit | 2e02b504095b40f7117ce737449f13d7fdda683a (patch) | |
tree | 0c9db663168dfb0654f5421c8293e0cb03a3edf7 /src/Wallabag | |
parent | a3b4e8a2c07d26ecb6196ac8b0be9764fd30cb93 (diff) | |
parent | c7132736196e5c0ba8c498a821e03455c3d55173 (diff) | |
download | wallabag-2e02b504095b40f7117ce737449f13d7fdda683a.tar.gz wallabag-2e02b504095b40f7117ce737449f13d7fdda683a.tar.zst wallabag-2e02b504095b40f7117ce737449f13d7fdda683a.zip |
Merge pull request #1367 from wallabag/v2-fix-actions-label
action labels depend on status
Diffstat (limited to 'src/Wallabag')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/EntryController.php | 4 |
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')); |