Skip to content

Commit

Permalink
fixing missing lang parameter from a getLanguageOrder-call, related to
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Ylikotila committed Jan 22, 2018
1 parent f0613ea commit 858968c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/Vocabulary.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 858968c

Please sign in to comment.