mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 07:19:03 +02:00
chore: update CI to v4.6.3 + all php and js dependencies
This commit is contained in:
parent
96b2df15b0
commit
346c00e7b5
206 changed files with 6239 additions and 5336 deletions
|
|
@ -29,7 +29,7 @@ class UserController extends BaseController
|
|||
return $this->{$method}();
|
||||
}
|
||||
|
||||
if (($this->user = (new UserModel())->find($params[0])) instanceof User) {
|
||||
if (($this->user = new UserModel()->find($params[0])) instanceof User) {
|
||||
return $this->{$method}();
|
||||
}
|
||||
|
||||
|
|
@ -39,7 +39,8 @@ class UserController extends BaseController
|
|||
public function list(): string
|
||||
{
|
||||
$data = [
|
||||
'users' => (new UserModel())->findAll(),
|
||||
'users' => new UserModel()
|
||||
->findAll(),
|
||||
];
|
||||
|
||||
$this->setHtmlHead(lang('User.all_users'));
|
||||
|
|
@ -280,7 +281,8 @@ class UserController extends BaseController
|
|||
->with('errors', $this->validator->getErrors());
|
||||
}
|
||||
|
||||
(new UserModel())->delete($this->user->id, true);
|
||||
new UserModel()
|
||||
->delete($this->user->id, true);
|
||||
|
||||
return redirect()
|
||||
->route('user-list')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue