diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-01-20 19:54:57 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-01-31 14:37:19 +0100 |
commit | bc78968764c741019a6b866ad434678cdbecbba4 (patch) | |
tree | 2b0ef3a4dcb51f09c7865a13b797221fadb445ae /src/Wallabag/CoreBundle/Controller | |
parent | feb02cb709b7f72330fabcac2f81d0fabdbf1a9b (diff) | |
download | wallabag-bc78968764c741019a6b866ad434678cdbecbba4.tar.gz wallabag-bc78968764c741019a6b866ad434678cdbecbba4.tar.zst wallabag-bc78968764c741019a6b866ad434678cdbecbba4.zip |
Move default configuration out of parameters
These default configuration value shouldn't be in parameters.yml.
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/ConfigController.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/ConfigController.php b/src/Wallabag/CoreBundle/Controller/ConfigController.php index 6c375909..4ece6431 100644 --- a/src/Wallabag/CoreBundle/Controller/ConfigController.php +++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php | |||
@@ -133,10 +133,10 @@ class ConfigController extends Controller | |||
133 | $userManager->updateUser($newUser, true); | 133 | $userManager->updateUser($newUser, true); |
134 | 134 | ||
135 | $config = new Config($newUser); | 135 | $config = new Config($newUser); |
136 | $config->setTheme($this->container->getParameter('theme')); | 136 | $config->setTheme($this->container->getParameter('wallabag_core.theme')); |
137 | $config->setItemsPerPage($this->container->getParameter('items_on_page')); | 137 | $config->setItemsPerPage($this->container->getParameter('wallabag_core.items_on_page')); |
138 | $config->setRssLimit($this->container->getParameter('rss_limit')); | 138 | $config->setRssLimit($this->container->getParameter('wallabag_core.rss_limit')); |
139 | $config->setLanguage($this->container->getParameter('language')); | 139 | $config->setLanguage($this->container->getParameter('wallabag_core.language')); |
140 | 140 | ||
141 | $em->persist($config); | 141 | $em->persist($config); |
142 | 142 | ||