mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
fix: edit remap functions to get episode in episode admin controllers
This commit is contained in:
parent
f295e9aa4c
commit
9f74cca342
@ -35,7 +35,7 @@ class EpisodePersonController extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
! ($episode = (new EpisodeModel())->getEpisodeById((int) $params[1]) instanceof Episode)
|
! ($episode = (new EpisodeModel())->getEpisodeById((int) $params[1])) instanceof Episode
|
||||||
) {
|
) {
|
||||||
throw PageNotFoundException::forPageNotFound();
|
throw PageNotFoundException::forPageNotFound();
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ class SoundbiteController extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
! ($episode = (new EpisodeModel())->getEpisodeById((int) $params[1]) instanceof Episode)
|
! ($episode = (new EpisodeModel())->getEpisodeById((int) $params[1])) instanceof Episode
|
||||||
) {
|
) {
|
||||||
throw PageNotFoundException::forPageNotFound();
|
throw PageNotFoundException::forPageNotFound();
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ class VideoClipsController extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
! ($episode = (new EpisodeModel())->getEpisodeById((int) $params[1]) instanceof Episode)
|
! ($episode = (new EpisodeModel())->getEpisodeById((int) $params[1])) instanceof Episode
|
||||||
) {
|
) {
|
||||||
throw PageNotFoundException::forPageNotFound();
|
throw PageNotFoundException::forPageNotFound();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user