forked from gitbot/uguu
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){
|
switch($arg){
|
||||||
case 'random':
|
case 'random':
|
||||||
return $name.'.'.$in;
|
if($in){
|
||||||
|
return $name.'.'.$in;
|
||||||
|
}
|
||||||
|
return $name;
|
||||||
break;
|
break;
|
||||||
case 'custom_original':
|
case 'custom_original':
|
||||||
return $name.'_'.$in;
|
return $name.'_'.$in;
|
||||||
|
Loading…
Reference in New Issue
Block a user