aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-02-22 11:38:25 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-02-22 11:44:39 +0100
commita4f42c59f0d8a408cf9f5d7971146866530012d3 (patch)
tree6dfab2947110a88426e230b17782f9c869ed866d /src/Wallabag/CoreBundle/Controller
parentd8d56448c993bdf4811a193f96e5ff44ed026417 (diff)
downloadwallabag-a4f42c59f0d8a408cf9f5d7971146866530012d3.tar.gz
wallabag-a4f42c59f0d8a408cf9f5d7971146866530012d3.tar.zst
wallabag-a4f42c59f0d8a408cf9f5d7971146866530012d3.zip
Use internal config instead for demo
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 9ff79ba9..87196b0e 100644
--- a/src/Wallabag/CoreBundle/Controller/ConfigController.php
+++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php
@@ -57,7 +57,7 @@ class ConfigController extends Controller
57 $pwdForm->handleRequest($request); 57 $pwdForm->handleRequest($request);
58 58
59 if ($pwdForm->isValid()) { 59 if ($pwdForm->isValid()) {
60 if ($this->getParameter('demo') === true && $this->getParameter('demo_username') === $user->getUsername()) { 60 if ($this->get('craue_config')->get('demo_mode_enabled') && $this->get('craue_config')->get('demo_mode_username') === $user->getUsername()) {
61 $this->get('session')->getFlashBag()->add( 61 $this->get('session')->getFlashBag()->add(
62 'notice', 62 'notice',
63 'In demonstration mode, you can\'t change password for this user.' 63 'In demonstration mode, you can\'t change password for this user.'