mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 11:00:40 +08:00
Sort File findDirectories by alphabetical order
This commit is contained in:
parent
9a1442f726
commit
13df8141bb
1 changed files with 4 additions and 2 deletions
|
@ -15,7 +15,7 @@ class File
|
||||||
/**
|
/**
|
||||||
* Get all directories in a path
|
* Get all directories in a path
|
||||||
*
|
*
|
||||||
* @param $paths array of paths
|
* @param $paths array|string of paths
|
||||||
* @return array All directories in paths
|
* @return array All directories in paths
|
||||||
*/
|
*/
|
||||||
public function findDirectories($paths): array
|
public function findDirectories($paths): array
|
||||||
|
@ -37,7 +37,9 @@ class File
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $directories;
|
asort($directories);
|
||||||
|
|
||||||
|
return array_values($directories);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue