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
|
|
@ -23,7 +23,7 @@ class PageController extends BaseController
|
|||
return $this->{$method}();
|
||||
}
|
||||
|
||||
if (($page = (new PageModel())->find($params[0])) instanceof Page) {
|
||||
if (($page = new PageModel()->find($params[0])) instanceof Page) {
|
||||
return $this->{$method}($page);
|
||||
}
|
||||
|
||||
|
|
@ -34,7 +34,8 @@ class PageController extends BaseController
|
|||
{
|
||||
$this->setHtmlHead(lang('Page.all_pages'));
|
||||
$data = [
|
||||
'pages' => (new PageModel())->findAll(),
|
||||
'pages' => new PageModel()
|
||||
->findAll(),
|
||||
];
|
||||
|
||||
return view('page/list', $data);
|
||||
|
|
@ -113,7 +114,8 @@ class PageController extends BaseController
|
|||
|
||||
public function deleteAction(Page $page): RedirectResponse
|
||||
{
|
||||
(new PageModel())->delete($page->id);
|
||||
new PageModel()
|
||||
->delete($page->id);
|
||||
|
||||
return redirect()->route('page-list');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue