mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Do not reuse v1 docroot and template paths
They can go stale and break v1 browsing
This commit is contained in:
parent
3683ace654
commit
02739ec140
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user