mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fix installer choosing name, when config.php is not loaded yet
It has been almost 1 month there, seems no one is using develop branch ;)
This commit is contained in:
parent
a1c7c2768c
commit
5a8bcec014
@ -183,6 +183,13 @@ class Validator
|
|||||||
$minLength = config('character_name_min_length');
|
$minLength = config('character_name_min_length');
|
||||||
$maxLength = config('character_name_max_length');
|
$maxLength = config('character_name_max_length');
|
||||||
|
|
||||||
|
// installer doesn't know config.php yet
|
||||||
|
// that's why we need to ignore the nulls
|
||||||
|
if(is_null($minLength) || is_null($maxLength)) {
|
||||||
|
$minLength = 4;
|
||||||
|
$maxLength = 21;
|
||||||
|
}
|
||||||
|
|
||||||
$length = strlen($name);
|
$length = strlen($name);
|
||||||
if($length < $minLength)
|
if($length < $minLength)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user