From 6f3eedf5e67789eaf76dc42443384a5b4fe17782 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 20 Jul 2024 07:25:27 +0100 Subject: [PATCH] Removed restoreDefaultAvatar method Signed-off-by: snipe --- app/Models/Setting.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/app/Models/Setting.php b/app/Models/Setting.php index 6dcfe4556f..1a25735e0d 100755 --- a/app/Models/Setting.php +++ b/app/Models/Setting.php @@ -412,25 +412,5 @@ class Setting extends Model } } - /** - * Copy the default avatar back over if it's missing - * - * @return string - **/ - - public static function restoreDefaultAvatar() : void { - - if (Storage::disk('public')->missing(public_path('uploads/avatars/default.png'))) { - \Log::debug('default avatar not found'); - try { - Storage::disk('public')->copy(public_path('img/demo/avatars/default.png'), public_path('uploads/avatars/default.png')); - \Log::debug('Default avatar copied back over from img/demo/default.png'); - } catch (\Exception $e) { - \Log::debug('Could not copy default avatar. Error: '.$e); - } - } - - } - }