Use $grav['accounts'] instead of $grav['users']

This commit is contained in:
Matias Griese
2019-03-27 14:52:23 +02:00
parent 551a888573
commit f4c26b6715
5 changed files with 8 additions and 7 deletions

View File

@@ -652,7 +652,7 @@ class Admin
$data[$type] = $obj;
} elseif (preg_match('|users/|', $type)) {
/** @var UserCollectionInterface $users */
$users = $this->grav['users'];
$users = $this->grav['accounts'];
$obj = $users->load(preg_replace('|users/|', '', $type));
$obj->update($this->cleanUserPost($post));
@@ -660,7 +660,7 @@ class Admin
$data[$type] = $obj;
} elseif (preg_match('|user/|', $type)) {
/** @var UserCollectionInterface $users */
$users = $this->grav['users'];
$users = $this->grav['accounts'];
$obj = $users->load(preg_replace('|user/|', '', $type));
$obj->update($this->cleanUserPost($post));