Skip to content
Snippets Groups Projects
Commit d13b36e3 authored by alangrafu's avatar alangrafu Committed by GIT_AUTHOR_NAME
Browse files

Merge branch 'master' into development

parents 6c490e26 6f95353e
No related branches found
No related tags found
No related merge requests found
...@@ -334,15 +334,20 @@ class Utils{ ...@@ -334,15 +334,20 @@ class Utils{
public static function internalize($array){ public static function internalize($array){
global $conf; global $conf;
$firstKeyAppearance = true;
foreach($array as $key => $value){ foreach($array as $key => $value){
if(!isset($value['value'])){ if(!isset($value['value'])){
$array[$key] = Utils::internalize($value); $array[$key] = Utils::internalize($value);
if($firstKeyAppearance){
$firstKeyAppearance = false;
$array['_first']=$array[$key];
}
}else{ }else{
if($value['uri'] == 1){ if($value['uri'] == 1){
$value['value'] = preg_replace("|^".$conf['ns']['local']."|", $conf['basedir'], $value['value']); $value['value'] = preg_replace("|^".$conf['ns']['local']."|", $conf['basedir'], $value['value']);
$value['curie'] = Utils::uri2curie($value['value']); $value['curie'] = Utils::uri2curie($value['value']);
$array[$key] = $value; $array[$key] = $value;
} }
} }
} }
return $array; return $array;
......
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