diff --git a/src/Helper/DisseminationServicesHelper.php b/src/Helper/DisseminationServicesHelper.php index 52f4223..b2e70b2 100644 --- a/src/Helper/DisseminationServicesHelper.php +++ b/src/Helper/DisseminationServicesHelper.php @@ -93,7 +93,7 @@ private function threeDDissService() { if ($extension == "nxs" || $extension == "ply") { if (!empty($filename)) { $dir = str_replace(".", "_", $filename); - $tmpDir = $_SERVER['DOCUMENT_ROOT'].'/sites/default/files/'.$dir.'/'; + $tmpDir = \Drupal::service('file_system')->realpath(file_default_scheme() . "://")."/".$dir."/"; //if the file dir is not exists then we will create it // and we will download the file if (!file_exists($tmpDir) || !file_exists($tmpDir.'/'.$filename)) { diff --git a/templates/acdh-repo-ds-3d-viewer.html.twig b/templates/acdh-repo-ds-3d-viewer.html.twig index 99ff371..0d3062b 100644 --- a/templates/acdh-repo-ds-3d-viewer.html.twig +++ b/templates/acdh-repo-ds-3d-viewer.html.twig @@ -4,23 +4,23 @@ - + - + - + - + - - + + - - - - + + + + - +