Skip to content

Commit

Permalink
fix moduleinfo name; use get;
Browse files Browse the repository at this point in the history
  • Loading branch information
julianwinkel committed Feb 21, 2022
1 parent 046ca41 commit 9fb5943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ProcessPodcastSubscriptionsEpisodes.module
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Lukaswhite\PodcastFeedParser\Podcast;

class ProcessPodcastSubscriptionsEpisodes extends WireData implements Module, ConfigurableModule
{
public static function getModuleinfo() {
public static function getModuleInfo() {
return array(
'title' => 'Process Podcast Create Episode Pages',
'version' => 101,
Expand All @@ -29,7 +29,7 @@ class ProcessPodcastSubscriptionsEpisodes extends WireData implements Module, Co
public function init() {
$this->addHookBefore('ProcessPodcastSubscriptions::processPodcast', $this, 'hookProcessPodcast');

$this->episodeParent = $this->pages->findOne($this->episodeParentId);
$this->episodeParent = $this->pages->get($this->episodeParentId);
if(!$this->episodeParent->id) $this->episodeParent = $this->pages->get('/');
}

Expand Down

0 comments on commit 9fb5943

Please sign in to comment.