mirror of
https://github.com/flarum/core.git
synced 2025-10-11 15:04:25 +02:00
Applied fixes from StyleCI
This commit is contained in:
@@ -170,10 +170,10 @@ class RegisterUserHandler
|
||||
'target' => $this->uploadDir,
|
||||
]);
|
||||
|
||||
$uploadName = Str::lower(Str::quickRandom()) . '.jpg';
|
||||
$uploadName = Str::lower(Str::quickRandom()).'.jpg';
|
||||
|
||||
$user->changeAvatarPath($uploadName);
|
||||
|
||||
$mount->move("source://".pathinfo($tmpFile, PATHINFO_BASENAME), "target://$uploadName");
|
||||
$mount->move('source://'.pathinfo($tmpFile, PATHINFO_BASENAME), "target://$uploadName");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user