aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r--src/Wallabag/CoreBundle/Controller/ConfigController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/ConfigController.php b/src/Wallabag/CoreBundle/Controller/ConfigController.php
index ea7cd883..68f30f6e 100644
--- a/src/Wallabag/CoreBundle/Controller/ConfigController.php
+++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php
@@ -376,7 +376,7 @@ class ConfigController extends Controller
376 public function changeViewModeAction(Request $request) 376 public function changeViewModeAction(Request $request)
377 { 377 {
378 $user = $this->getUser(); 378 $user = $this->getUser();
379 $user->getConfig()->setViewMode(!$user->getConfig()->getViewMode()); 379 $user->getConfig()->setListMode(!$user->getConfig()->getListMode());
380 380
381 $em = $this->getDoctrine()->getManager(); 381 $em = $this->getDoctrine()->getManager();
382 $em->persist($user); 382 $em->persist($user);