Skip to content

Commit

Permalink
Fix #880
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jul 29, 2019
1 parent c636c6e commit f663007
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/ConceptPropertyValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getLang()
return $this->getEnvLang();
}

public function getLabel($lang = '', $fallback = 'uri')
public function getLabel($lang = '', $fallbackToUri = 'uri')
{
if ($this->clang) {
$lang = $this->clang;
Expand Down Expand Up @@ -69,7 +69,7 @@ public function getLabel($lang = '', $fallback = 'uri')
return $this->resource->getLiteral('rdf:value');
}

if ($fallback == 'uri') {
if ($fallbackToUri == 'uri') {
// return uri if no label is found
$label = $this->resource->shorten() ? $this->resource->shorten() : $this->getUri();
return $label;
Expand Down

0 comments on commit f663007

Please sign in to comment.