Config is no longer a singleton as such

This commit is contained in:
emeric
2019-07-29 13:00:58 +02:00
parent 9270d6814c
commit d114c763c3
6 changed files with 38 additions and 49 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ UserView::refreshView()
// Demo account
t->setFormWidget(UserModel::DemoField, std::make_unique<Wt::WCheckBox>());
if (!userId && Config::instance().getBool("demo", false))
if (!userId && getService<Config>()->getBool("demo", false))
t->setCondition("if-demo", true);
Wt::WPushButton* saveBtn = t->bindNew<Wt::WPushButton>("save-btn", Wt::WString::tr(userId ? "Lms.save" : "Lms.create"));