Skip to content

Commit 27c98b6

Browse files
authored
Resolve php errors caused by php8.2 (hestiacp#3209)
1 parent 3e09031 commit 27c98b6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

web/src/app/System/HestiaApp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,11 @@ public function getCurrentBackendTemplate(string $domain) {
225225
return $match[1] . "." . $match[2];
226226
} else {
227227
$supported = $this->run("v-list-sys-php", "json", $result);
228-
return $this->$supported->json[0];
228+
return $result->json[0];
229229
}
230230
} else {
231231
$supported = $this->run("v-list-sys-php", "json", $result);
232-
return $this->$supported->json[0];
232+
return $this->$result->json[0];
233233
}
234234
}
235235

web/src/app/WebApp/Installers/BaseSetup.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ abstract class BaseSetup implements InstallerInterface {
1414
protected $domain;
1515
protected $extractsubdir;
1616
protected $AppDirInstall;
17+
protected $appcontext;
1718

1819
public function setAppDirInstall(string $appDir) {
1920
if (!empty($appDir)) {

0 commit comments

Comments
 (0)