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