diff --git a/model/Vocabulary.php b/model/Vocabulary.php index 8b0bc50d4..94b250993 100644 --- a/model/Vocabulary.php +++ b/model/Vocabulary.php @@ -302,7 +302,7 @@ public function getLabelStatistics() public function getConceptHierarchy($uri, $lang) { $lang = $lang ? $lang : $this->getEnvLang(); - $fallback = count($this->config->getLanguageOrder()) > 1 ? $this->config->getLanguageOrder()[1] : $this->config->getDefaultLanguage(); + $fallback = count($this->config->getLanguageOrder($lang)) > 1 ? $this->config->getLanguageOrder($lang)[1] : $this->config->getDefaultLanguage(); $props = $this->config->getHierarchyProperty(); return $this->getSparql()->queryParentList($uri, $lang, $fallback, $props); }