diff --git a/_config.php b/_config.php index 9e519d4a..71c7914c 100644 --- a/_config.php +++ b/_config.php @@ -5,5 +5,4 @@ // Avoid creating global variables call_user_func(function () { - }); diff --git a/src/Models/Link.php b/src/Models/Link.php index 87d2de0f..d6c2a8ce 100644 --- a/src/Models/Link.php +++ b/src/Models/Link.php @@ -228,7 +228,9 @@ public function loadLinkData(array $data): JsonData */ public function forTemplate() { - return $this->renderWith([self::class]); + // First look for a subclass of the email template e.g. EmailLink.ss which may be defined + // in a project. Fallback to using the generic Link.ss template which this module provides + return $this->renderWith([static::class, self::class]); } /**