Skip to content

Commit

Permalink
Fix getUpdateStepFileLocation return type and call
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Aug 3, 2023
1 parent def1fda commit 15136da
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ public function currentStep(): array {
return $jsonData;
}

public function getUpdateStepFileLocation() {
public function getUpdateStepFileLocation(): string {
$updaterDir = $this->getUpdateDirectoryLocation() . '/updater-'.$this->getConfigOption('instanceid');
return $updaterDir . '/.step';
}
Expand Down Expand Up @@ -1307,7 +1307,7 @@ public function isAuthenticated(): bool {
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()
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion index.web.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function isAuthenticated(): bool {
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()
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ public function currentStep(): array {
return $jsonData;
}

public function getUpdateStepFileLocation() {
public function getUpdateStepFileLocation(): string {
$updaterDir = $this->getUpdateDirectoryLocation() . '/updater-'.$this->getConfigOption('instanceid');
return $updaterDir . '/.step';
}
Expand Down
Binary file modified updater.phar
Binary file not shown.

0 comments on commit 15136da

Please sign in to comment.