mirror of
https://github.com/pelican-dev/panel.git
synced 2025-12-21 16:14:02 +01:00
Fix: egg images are not loading (#2009)
This commit is contained in:
parent
8b5f33ee71
commit
be55e75109
@ -350,7 +350,7 @@ class Egg extends Model implements Validatable
|
||||
foreach (array_keys(static::IMAGE_FORMATS) as $ext) {
|
||||
$path = static::ICON_STORAGE_PATH . "/$this->uuid.$ext";
|
||||
if (Storage::disk('public')->exists($path)) {
|
||||
return url($path);
|
||||
return Storage::disk('public')->url($path);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -538,7 +538,7 @@ class Server extends Model implements HasAvatar, Validatable
|
||||
foreach (array_keys(static::IMAGE_FORMATS) as $ext) {
|
||||
$path = static::ICON_STORAGE_PATH . "/$this->uuid.$ext";
|
||||
if (Storage::disk('public')->exists($path)) {
|
||||
return url($path);
|
||||
return Storage::disk('public')->url($path);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user