mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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,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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user