Skip to content
Snippets Groups Projects
Commit cf27dccf authored by alangrafu's avatar alangrafu
Browse files

Resolving conflict

parent 863592bb
No related branches found
No related tags found
No related merge requests found
...@@ -125,15 +125,17 @@ class Utils{ ...@@ -125,15 +125,17 @@ class Utils{
$a = explode(",", $accept_string); $a = explode(",", $accept_string);
$b = array(); $b = array();
foreach($a as $v){ foreach($a as $v){
if(strstr($v, ";")){ foreach($conf['http_accept'] as $formatTypeArray){
$aux = explode(";q=", $v); if(strstr($v, ";")){
foreach($conf['http_accept'] as $formatTypeArray){ $aux = explode(";q=", $v);
if(in_array($aux[0], $formatTypeArray)){ if(in_array($aux[0], $formatTypeArray)){
$b[$aux[0]] = $aux[1]; $b[$aux[0]] = $aux[1];
} }
}else{
if(in_array($v, $formatTypeArray)){
$b[$v] = 1;
}
} }
}else{
$b[$v] = 1;
} }
} }
$a = $b; $a = $b;
...@@ -301,7 +303,7 @@ class Utils{ ...@@ -301,7 +303,7 @@ class Utils{
if(Utils::getResultsType($query) == $conf['endpoint']['select']['output']){ if(Utils::getResultsType($query) == $conf['endpoint']['select']['output']){
$rPointer[$modelFile] = Utils::sparqlResult2Obj($aux); $rPointer[$modelFile] = Utils::sparqlResult2Obj($aux);
/*if(sizeof($rPointer)>0){ /*if(sizeof($rPointer)>0){
$rPointer[$modelFile]['first'] = $rPointer[$modelFile][0]; $rPointer[$modelFile]['first'] = $rPointer[$modelFile][0];
}*/ }*/
}else{ }else{
$rPointer[$modelFile] = $aux; $rPointer[$modelFile] = $aux;
...@@ -310,7 +312,7 @@ class Utils{ ...@@ -310,7 +312,7 @@ class Utils{
if(Utils::getResultsType($query) == $conf['endpoint']['select']['output']){ if(Utils::getResultsType($query) == $conf['endpoint']['select']['output']){
$rPointer = Utils::sparqlResult2Obj($aux); $rPointer = Utils::sparqlResult2Obj($aux);
/*if(sizeof($rPointer)>0){ /*if(sizeof($rPointer)>0){
$rPointer['first'] = $rPointer[0]; $rPointer['first'] = $rPointer[0];
}*/ }*/
}else{ }else{
$rPointer = $aux; $rPointer = $aux;
......
...@@ -23,7 +23,7 @@ $conf['view']['default'] = 'default'; ...@@ -23,7 +23,7 @@ $conf['view']['default'] = 'default';
$conf['resource']['url_delimiter'] = "%u"; $conf['resource']['url_delimiter'] = "%u";
$conf['http_accept']['html'] = array('text/html', 'application/xhtml+xml'); $conf['http_accept']['html'] = array('text/html');
$conf['http_accept']['rdf'] = array('application/rdf+xml'); $conf['http_accept']['rdf'] = array('application/rdf+xml');
$conf['http_accept']['ttl'] = array('text/n3', 'application/x-turtle', 'application/turtle', 'text/turtle'); $conf['http_accept']['ttl'] = array('text/n3', 'application/x-turtle', 'application/turtle', 'text/turtle');
$conf['http_accept']['json'] = array('application/json', 'application/x-javascript', 'text/javascript', 'text/x-javascript', 'text/x-json'); $conf['http_accept']['json'] = array('application/json', 'application/x-javascript', 'text/javascript', 'text/x-javascript', 'text/x-json');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment