mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
fix AssetManifestService error when loading the panel
This commit is contained in:
@@ -15,7 +15,7 @@ class AssetHashService
|
||||
|
||||
private Filesystem $filesystem;
|
||||
|
||||
protected static mixed $manifest;
|
||||
protected static mixed $manifest = null;
|
||||
|
||||
/**
|
||||
* AssetHashService constructor.
|
||||
@@ -99,9 +99,13 @@ class AssetHashService
|
||||
*/
|
||||
protected function manifest(): array
|
||||
{
|
||||
return self::$manifest ?: self::$manifest = json_decode(
|
||||
$this->filesystem->get(self::MANIFEST_PATH),
|
||||
true
|
||||
);
|
||||
if (static::$manifest === null) {
|
||||
self::$manifest = json_decode(
|
||||
$this->filesystem->get(self::MANIFEST_PATH),
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
return static::$manifest;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user