mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 10:49:37 +02:00
force alphabet to A-Za-z0-9 all others become ZZ
This commit is contained in:
parent
ea60705a1a
commit
50cfcbc99c
1 changed files with 1 additions and 0 deletions
|
@ -124,6 +124,7 @@ function sort_find_home($song,$sort_pattern,$base) {
|
|||
$first_element = substr($sort_pattern,0,2);
|
||||
$element = sort_element_name($first_element);
|
||||
$alphabet = strtoupper(substr(${$element},0,1));
|
||||
$alphabet = preg_replace("/[^A-Za-z0-9]/","ZZ",$alphabet);
|
||||
|
||||
$home .= "/$alphabet";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue