Skip to content

Commit 5622b4f

Browse files
committed
Update UserController.php
1 parent 65766ef commit 5622b4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Controllers/UserController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use App\Models\Button;
1818
use App\Models\Link;
1919
use App\Models\LinkType;
20+
use App\Models\UserData;
2021

2122

2223
//Function tests if string starts with certain string (used to test for illegal strings)
@@ -542,7 +543,6 @@ public function themeBackground(request $request)
542543
$customBackground = $request->file('image');
543544

544545
if (!empty($customBackground)) {
545-
// Delete existing image
546546
$directory = base_path('/img/background-img/');
547547
$files = scandir($directory);
548548
$pathinfo = "error.error";
@@ -823,4 +823,4 @@ function saveIcon($icon, $link){
823823

824824
}
825825

826-
}
826+
}

0 commit comments

Comments
 (0)