@@ -575,9 +575,9 @@ discard block |
||
575 | 575 | $vocid = $request->getVocab()->getId(); |
576 | 576 | return $this->returnError('404', 'Not Found', "No download source URL known for vocabulary $vocid in language $dataLang"); |
577 | 577 | } |
578 | - } else { |
|
578 | + } else { |
|
579 | 579 | header("Location: " . $urls[$format]); |
580 | - } |
|
580 | + } |
|
581 | 581 | } |
582 | 582 | |
583 | 583 | private function returnDataResults($results, $format) { |
@@ -1090,9 +1090,9 @@ discard block |
||
1090 | 1090 | |
1091 | 1091 | return $this->returnJson(array_merge_recursive($this->context, |
1092 | 1092 | array('@context' => array( '@language' => $request->getLang(), |
1093 | - 'prefLabel' => 'skos:prefLabel', |
|
1094 | - 'xsd' => 'http://www.w3.org/2001/XMLSchema#', |
|
1095 | - 'date' => array( '@id' => 'http://purl.org/dc/terms/date', '@type' => 'http://www.w3.org/2001/XMLSchema#date') ) |
|
1093 | + 'prefLabel' => 'skos:prefLabel', |
|
1094 | + 'xsd' => 'http://www.w3.org/2001/XMLSchema#', |
|
1095 | + 'date' => array( '@id' => 'http://purl.org/dc/terms/date', '@type' => 'http://www.w3.org/2001/XMLSchema#date') ) |
|
1096 | 1096 | ), |
1097 | 1097 | array('changeList' => $changeList))); |
1098 | 1098 |