Skip to content

Commit

Permalink
ENH Don't use keyword "self" (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Jul 29, 2024
1 parent a1b87a7 commit fbbad23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Block/BannerBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected function decodeLinkData($linkJson)

// Link page, if selected
if ($data->PageID) {
$data->setField('Page', self::get_by_id(SiteTree::class, $data->PageID));
$data->setField('Page', BannerBlock::get_by_id(SiteTree::class, $data->PageID));
}

return $data;
Expand Down

0 comments on commit fbbad23

Please sign in to comment.