Do not reuse v1 docroot and template paths

They can go stale and break v1 browsing
This commit is contained in:
Luis Ángel San Martín 2021-06-01 19:34:54 +02:00
parent 3683ace654
commit 02739ec140

View File

@ -54,8 +54,7 @@ void Startup::start(quint16 port)
templatePath = QFileInfo(QCoreApplication::applicationDirPath(), baseTemplatePath).absoluteFilePath();
#endif
if (templateSettings->value("path").isNull())
templateSettings->setValue("path", templatePath);
templateSettings->setValue("path", templatePath);
Static::templateLoader = new TemplateCache(templateSettings, app);
@ -85,8 +84,7 @@ void Startup::start(quint16 port)
docroot = QFileInfo(QCoreApplication::applicationDirPath(), basedocroot).absoluteFilePath();
#endif
if (fileSettings->value("path").isNull())
fileSettings->setValue("path", docroot);
fileSettings->setValue("path", docroot);
Static::staticFileController = new StaticFileController(fileSettings, app);