Skip to content

Commit

Permalink
never fall back to a different language than the requested one
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed Aug 14, 2024
1 parent f2cc004 commit f81b1df
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/model/BaseConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f81b1df

Please sign in to comment.