Make sure the entries that just have a number work correctly
This commit is contained in:
parent
b1eaa506b2
commit
2f5abb8488
@ -109,7 +109,11 @@ class Builder
|
|||||||
protected static function removeSortingInformations($filename, $separator = '_')
|
protected static function removeSortingInformations($filename, $separator = '_')
|
||||||
{
|
{
|
||||||
$filename = explode('_', $filename);
|
$filename = explode('_', $filename);
|
||||||
if ($filename[0] == '' || is_numeric($filename[0])) {
|
|
||||||
|
// Remove the numeric part of the
|
||||||
|
// filename, only if there is
|
||||||
|
// something after that
|
||||||
|
if ($filename[0] == '' || (is_numeric($filename[0]) && array_key_exists(1, $filename))) {
|
||||||
unset($filename[0]);
|
unset($filename[0]);
|
||||||
} else {
|
} else {
|
||||||
$t = $filename[0];
|
$t = $filename[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user