mirror of
https://github.com/getgrav/grav.git
synced 2026-02-23 15:11:27 +01:00
rename hasChildren to countChildren
Signed-off-by: Andy Miller <rhuk@mac.com>
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# v1.7.0-rc.12
|
||||
## mm/dd/2020
|
||||
|
||||
1. [](#improved)
|
||||
* Changed `Folder::hasChildren` to `Folder::countChildren`
|
||||
|
||||
# v1.7.0-rc.11
|
||||
## 05/14/2020
|
||||
|
||||
|
||||
@@ -488,9 +488,9 @@ abstract class Folder
|
||||
* Does a directory contain children
|
||||
*
|
||||
* @param string $directory
|
||||
* @return bool
|
||||
* @return int
|
||||
*/
|
||||
public static function hasChildren($directory) {
|
||||
public static function countChildren($directory) {
|
||||
if (!is_dir($directory)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user