Signed-off-by: Andy Miller <rhuk@mac.com>
This commit is contained in:
Andy Miller
2025-10-21 13:19:00 -06:00
parent 975a2a8dd3
commit 1b75df73ef

View File

@@ -300,7 +300,14 @@ ERR;
});
}
$manifest = $service->promote($this->location, $this->getVersion(), $this->ignores);
$this->lastManifest = $service->getLastManifest() ?? $manifest;
$this->lastManifest = $manifest;
if (method_exists($service, 'getLastManifest')) {
// SafeUpgradeService in Grav < 1.7.50.1 does not expose getLastManifest().
$lastManifest = $service->getLastManifest();
if (null !== $lastManifest) {
$this->lastManifest = $lastManifest;
}
}
Installer::setError(Installer::OK);
} else {
Installer::install(