mirror of
https://github.com/nokonoko/Uguu.git
synced 2024-01-06 13:35:15 +00:00
Merge pull request #36 from thxo/remove-dot-suffix-randomname
Ensure no trailing dot in random filenames
This commit is contained in:
commit
4645ec5b89
@ -55,7 +55,10 @@ function gen_name($arg, $in){
|
||||
}
|
||||
switch($arg){
|
||||
case 'random':
|
||||
return $name.'.'.$in;
|
||||
if($in){
|
||||
return $name.'.'.$in;
|
||||
}
|
||||
return $name;
|
||||
break;
|
||||
case 'custom_original':
|
||||
return $name.'_'.$in;
|
||||
|
Loading…
Reference in New Issue
Block a user