Skip to content
Snippets Groups Projects
Unverified Commit ac5b2d6e authored by Yassine Doghri's avatar Yassine Doghri
Browse files

ci(bundle): update bundle-prepare script

parent 71b1b5f7
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ class EpisodeController extends BaseController
if (count($params) > 1) {
if (
! ($this->episode = (new EpisodeModel())
! ($episode = (new EpisodeModel())
->where([
'id' => $params[1],
'podcast_id' => $params[0],
......@@ -52,6 +52,8 @@ class EpisodeController extends BaseController
throw PageNotFoundException::forPageNotFound();
}
$this->episode = $episode;
unset($params[1]);
unset($params[0]);
}
......
......@@ -33,8 +33,9 @@ class PodcastController extends BaseController
}
if (
($this->podcast = (new PodcastModel())->getPodcastById((int) $params[0])) !== null
($podcast = (new PodcastModel())->getPodcastById((int) $params[0])) !== null
) {
$this->podcast = $podcast;
return $this->{$method}();
}
......
#!/bin/bash
# install only production dependencies using the --no-dev option
php composer.phar install --no-dev --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs
composer install --no-dev --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs
# build all production static assets (css, js, images, icons, fonts, etc.)
npm run build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment