1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-26 18:21:02 +00:00

Move default configuration out of parameters

These default configuration value shouldn't be in parameters.yml.
This commit is contained in:
Jeremy Benoist 2016-01-20 19:54:57 +01:00
parent feb02cb709
commit bc78968764
10 changed files with 33 additions and 40 deletions

View file

@ -133,10 +133,10 @@ class ConfigController extends Controller
$userManager->updateUser($newUser, true);
$config = new Config($newUser);
$config->setTheme($this->container->getParameter('theme'));
$config->setItemsPerPage($this->container->getParameter('items_on_page'));
$config->setRssLimit($this->container->getParameter('rss_limit'));
$config->setLanguage($this->container->getParameter('language'));
$config->setTheme($this->container->getParameter('wallabag_core.theme'));
$config->setItemsPerPage($this->container->getParameter('wallabag_core.items_on_page'));
$config->setRssLimit($this->container->getParameter('wallabag_core.rss_limit'));
$config->setLanguage($this->container->getParameter('wallabag_core.language'));
$em->persist($config);