mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 01:38:49 -05:00
refactor: add literal separator to numbers
- This is for PHP7.4 + only - Adds an `_` as thousands separator in numbers
This commit is contained in:
@@ -198,7 +198,7 @@ class UserController extends Controller
|
||||
$user->image = $user->username.'.'.$image->getClientOriginalExtension();
|
||||
} else {
|
||||
return redirect()->route('users.show', ['username' => $user->username])
|
||||
->withErrors('Your avatar is too large, max file size: '.($max_upload / 1000000).' MB');
|
||||
->withErrors('Your avatar is too large, max file size: '.($max_upload / 1_000_000).' MB');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user