Skip to content
Snippets Groups Projects
Commit 0457a209 authored by alvaro's avatar alvaro
Browse files

Added mirroredCurie

parent b3f7d15c
No related branches found
No related tags found
No related merge requests found
......@@ -500,6 +500,7 @@ class Utils{
if(isset($value['uri']) && $value['uri'] == 1){
//If there is no mirroring, it wouldn't hurt to have available this value (e.g., using templates from a mirrored instance to a non-mirrored one)
$value['mirroredUri'] = $value['value'];
$value['mirroredCurie'] = Utils::uri2curie($value['value']);
if(isset($conf['mirror_external_uris']) && $conf['mirror_external_uris'] != false){
if(is_bool($conf['mirror_external_uris'])){
$value['value'] = preg_replace("|^".$conf['ns']['local']."|", $conf['basedir'], $value['value']);
......@@ -510,7 +511,7 @@ class Utils{
exit(1);
}
}
$value['curie'] = Utils::uri2curie($value['value']);
$value['curie'] = $value['mirroredCurie'];
$array[$key] = $value;
}
}
......
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