We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a6987f commit cec01d3Copy full SHA for cec01d3
app/Http/Controllers/UserController.php
@@ -1096,17 +1096,6 @@ public function exportAll(Request $request)
1096
1097
$userData = $user->toArray();
1098
$userData['links'] = $links->toArray();
1099
-
1100
- function findAvatar($name){
1101
- $directory = base_path('assets/img');
1102
- $files = scandir($directory);
1103
- $pathinfo = "error.error";
1104
- foreach($files as $file) {
1105
- if (strpos($file, $name.'.') !== false) {
1106
- $pathinfo = "/img/" . $name. "." . pathinfo($file, PATHINFO_EXTENSION);
1107
- }}
1108
- return $pathinfo;
1109
- }
1110
1111
if (file_exists(base_path(findAvatar($userId)))){
1112
$imagePath = base_path(findAvatar($userId));
0 commit comments