mirror of
https://github.com/getgrav/grav.git
synced 2025-11-01 19:05:58 +01:00
@@ -300,7 +300,14 @@ ERR;
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
$manifest = $service->promote($this->location, $this->getVersion(), $this->ignores);
|
$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);
|
Installer::setError(Installer::OK);
|
||||||
} else {
|
} else {
|
||||||
Installer::install(
|
Installer::install(
|
||||||
|
|||||||
Reference in New Issue
Block a user