Fix getUpdateStepFileLocation return type and call

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2023-08-03 16:59:44 +02:00
parent def1fda417
commit 15136da979
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
4 changed files with 4 additions and 4 deletions

View File

@ -1130,7 +1130,7 @@ EOF;
return $jsonData;
}
public function getUpdateStepFileLocation() {
public function getUpdateStepFileLocation(): string {
$updaterDir = $this->getUpdateDirectoryLocation() . '/updater-'.$this->getConfigOption('instanceid');
return $updaterDir . '/.step';
}
@ -1307,7 +1307,7 @@ if ($currentStep !== []) {
sprintf(
'Step %d is currently in process. Please reload this page later or remove the following file to start from scratch: %s',
$stepNumber,
$this->updater->getUpdateStepFileLocation()
$updater->getUpdateStepFileLocation()
)
);
}

View File

@ -95,7 +95,7 @@ if ($currentStep !== []) {
sprintf(
'Step %d is currently in process. Please reload this page later or remove the following file to start from scratch: %s',
$stepNumber,
$this->updater->getUpdateStepFileLocation()
$updater->getUpdateStepFileLocation()
)
);
}

View File

@ -1092,7 +1092,7 @@ EOF;
return $jsonData;
}
public function getUpdateStepFileLocation() {
public function getUpdateStepFileLocation(): string {
$updaterDir = $this->getUpdateDirectoryLocation() . '/updater-'.$this->getConfigOption('instanceid');
return $updaterDir . '/.step';
}

Binary file not shown.