From dd47b16be90f39566fce451a3dfaa788487a41f6 Mon Sep 17 00:00:00 2001 From: J Hunt Date: Sat, 28 Mar 2020 02:19:34 +1300 Subject: [PATCH] #1475 Check derivative_term instead of source_term (#766) Co-authored-by: Jonathan Hunt --- src/Plugin/Action/AbstractGenerateDerivative.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/Action/AbstractGenerateDerivative.php b/src/Plugin/Action/AbstractGenerateDerivative.php index 6ecc2259..fa41f7ff 100644 --- a/src/Plugin/Action/AbstractGenerateDerivative.php +++ b/src/Plugin/Action/AbstractGenerateDerivative.php @@ -160,7 +160,7 @@ class AbstractGenerateDerivative extends EmitEvent { // Find the term for the derivative and use it to set the destination url // in the data array. $derivative_term = $this->utils->getTermForUri($this->configuration['derivative_term_uri']); - if (!$source_term) { + if (!$derivative_term) { throw new \RuntimeException("Could not locate derivative term with uri" . $this->configuration['derivative_term_uri'], 500); }