mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
If status.php fails check <server>/nextcloud/status.php
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
4e7c033ae5
commit
7ce009ef49
1 changed files with 2 additions and 2 deletions
|
@ -391,7 +391,7 @@ bool LsColJob::finished()
|
|||
|
||||
namespace {
|
||||
const char statusphpC[] = "status.php";
|
||||
const char owncloudDirC[] = "owncloud/";
|
||||
const char nextcloudDirC[] = "nextcloud/";
|
||||
}
|
||||
|
||||
CheckServerJob::CheckServerJob(AccountPtr account, QObject *parent)
|
||||
|
@ -496,7 +496,7 @@ bool CheckServerJob::finished()
|
|||
// at the original location
|
||||
if ((reply()->error() == QNetworkReply::ContentNotFoundError) && (!_subdirFallback)) {
|
||||
_subdirFallback = true;
|
||||
setPath(QLatin1String(owncloudDirC) + QLatin1String(statusphpC));
|
||||
setPath(QLatin1String(nextcloudDirC) + QLatin1String(statusphpC));
|
||||
start();
|
||||
qCInfo(lcCheckServerJob) << "Retrying with" << reply()->url();
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue