From f81b1df7d3471d64e0c22d640dcd049946faf187 Mon Sep 17 00:00:00 2001 From: Osma Suominen Date: Wed, 14 Aug 2024 10:54:49 +0300 Subject: [PATCH] never fall back to a different language than the requested one --- src/model/BaseConfig.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/model/BaseConfig.php b/src/model/BaseConfig.php index 322d3f4ad..e2ea30882 100644 --- a/src/model/BaseConfig.php +++ b/src/model/BaseConfig.php @@ -61,12 +61,7 @@ protected function getLiteral($property, $default=null, $lang=null) } } - // not found with selected language or no language tag, try any language - $literal = $this->getResource()->getLiteral($property); - if ($literal) { - return $literal->getValue(); - } - + // not found, return the default value return $default; }