maj
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* @package Grav\Common\User
|
||||
*
|
||||
* @copyright Copyright (c) 2015 - 2021 Trilby Media, LLC. All rights reserved.
|
||||
* @copyright Copyright (c) 2015 - 2022 Trilby Media, LLC. All rights reserved.
|
||||
* @license MIT License; see LICENSE file for details.
|
||||
*/
|
||||
|
||||
@@ -114,7 +114,7 @@ class UserCollection implements UserCollectionInterface
|
||||
if (!$user->exists()) {
|
||||
foreach ($files as $file) {
|
||||
if (Utils::endsWith($file, YAML_EXT)) {
|
||||
$find_user = $this->load(trim(pathinfo($file, PATHINFO_FILENAME)));
|
||||
$find_user = $this->load(trim(Utils::pathinfo($file, PATHINFO_FILENAME)));
|
||||
foreach ($fields as $field) {
|
||||
if (isset($find_user[$field]) && $find_user[$field] === $query) {
|
||||
return $find_user;
|
||||
|
||||
Reference in New Issue
Block a user