mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 21:23:40 +01:00
Linux/MacOSX: cleaner code for handling of missing local HTML documentation.
This commit is contained in:
parent
d5b0e0db3f
commit
3e678f6868
@ -1234,7 +1234,6 @@ namespace VeraCrypt
|
||||
#elif defined (TC_UNIX)
|
||||
htmlPath = L"/usr/share/veracrypt/doc/HTML/";
|
||||
#else
|
||||
htmlPath = L"https://www.veracrypt.fr/en/";
|
||||
localFile = false;
|
||||
#endif
|
||||
if (localFile)
|
||||
@ -1242,12 +1241,14 @@ namespace VeraCrypt
|
||||
/* check if local file exists */
|
||||
wxFileName htmlFile = htmlPath + url;
|
||||
htmlFile.Normalize();
|
||||
if (!htmlFile.FileExists())
|
||||
{
|
||||
htmlPath = L"https://www.veracrypt.fr/en/";
|
||||
url.Replace (L" ", L"%20");
|
||||
url.Replace (L"'", L"%27");
|
||||
}
|
||||
localFile = htmlFile.FileExists();
|
||||
}
|
||||
|
||||
if (!localFile)
|
||||
{
|
||||
htmlPath = L"https://www.veracrypt.fr/en/";
|
||||
url.Replace (L" ", L"%20");
|
||||
url.Replace (L"'", L"%27");
|
||||
}
|
||||
|
||||
url = htmlPath + url;
|
||||
|
Loading…
Reference in New Issue
Block a user