Skip to content

Commit

Permalink
Components must always indicate their template otherwise they can't r…
Browse files Browse the repository at this point in the history
…ender
  • Loading branch information
bakert committed Sep 25, 2024
1 parent d7552a9 commit 4092cc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gatherling/Views/Components/CardLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class CardLink extends Component
public string $imageSrc;

public function __construct(public string $cardName) {
parent::__construct('partials/cardLink');
$gathererName = preg_replace('/ /', ']+[', $cardName);
$gathererName = str_replace('/', ']+[', $gathererName);
$this->gathererLink = 'https://gatherer.wizards.com/Pages/Search/Default.aspx?name=+[' . rawurlencode($gathererName) . ']';
Expand Down

0 comments on commit 4092cc6

Please sign in to comment.