mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 15:26:43 +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
|
|
@ -28,7 +28,7 @@ class PlatformController extends BaseController
|
|||
}
|
||||
|
||||
if (
|
||||
! ($podcast = (new PodcastModel())->getPodcastById((int) $params[0])) instanceof Podcast
|
||||
! ($podcast = new PodcastModel()->getPodcastById((int) $params[0])) instanceof Podcast
|
||||
) {
|
||||
throw PageNotFoundException::forPageNotFound();
|
||||
}
|
||||
|
|
@ -51,7 +51,8 @@ class PlatformController extends BaseController
|
|||
$data = [
|
||||
'podcast' => $this->podcast,
|
||||
'platformType' => $platformType,
|
||||
'platforms' => (new PlatformModel())->getPlatformsWithData($this->podcast->id, $platformType),
|
||||
'platforms' => new PlatformModel()
|
||||
->getPlatformsWithData($this->podcast->id, $platformType),
|
||||
];
|
||||
|
||||
$this->setHtmlHead(lang("Platforms.title.{$platformType}"));
|
||||
|
|
@ -100,7 +101,8 @@ class PlatformController extends BaseController
|
|||
|
||||
public function removeAction(string $platformType, string $platformSlug): RedirectResponse
|
||||
{
|
||||
(new PlatformModel())->removePlatform($this->podcast->id, $platformType, $platformSlug);
|
||||
new PlatformModel()
|
||||
->removePlatform($this->podcast->id, $platformType, $platformSlug);
|
||||
|
||||
return redirect()
|
||||
->back()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue