You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
@@ -29,7 +29,9 @@ class WebsiteAd extends Model
|
||||
$adsPicturePath = Cache::remember('ads_picture_path', 3600, fn () => $settingsService->getOrDefault('ads_picture_path'));
|
||||
|
||||
if (! str_starts_with($adsPicturePath, 'http')) {
|
||||
$adsPicturePath = rtrim(strval(config('app.url') ?? ''), '/') . '/' . ltrim($adsPicturePath, '/');
|
||||
$appUrl = config('app.url');
|
||||
$appUrl = is_string($appUrl) ? $appUrl : '';
|
||||
$adsPicturePath = rtrim($appUrl, '/') . '/' . ltrim($adsPicturePath, '/');
|
||||
}
|
||||
return rtrim($adsPicturePath, '/') . '/' . $this->image;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user