]> _ Git - cubeextranet.git/commitdiff
wait #5149
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 11 Mar 2022 17:54:52 +0000 (17:54 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 11 Mar 2022 17:54:52 +0000 (17:54 +0000)
inc/ws/Controlleur/class.ws.url.php

index ddc5f9c619b4af95b62495d2c1720ee1bc31e4a1..384e9a001eacc9ac4b6573493441741337502882 100644 (file)
@@ -681,7 +681,12 @@ class wsUrl
                 if (!isset($infos['pattern'])) {
                     $infos['pattern'] = '$1_$2';
                 }
-                $res .= '<li data-type="' . $infos['type'] . '"><a class="extfb" target="_blank" href="' . SITE_PATH . $infos['version'] . '/' . $infos['pattern'] . '/' . $infos['file'] . '">' . $infos['icon'] . $infos['title'] . '</a><a data-ok-content="' . __('URL copiée') . '" data-tippy-content="' . __("Copier l'URL dans le presse-papier") . '" class="clipboardurl" href="' . SITE_PATH . $infos['version'] . '/' . $infos['pattern'] . '/' . $infos['file'] . '"><img src="/images/ws/link.svg"></a></li>';
+
+                $h = SITE_PATH;
+                if ($_SERVER['HTTP_HOST'] == 'exe.workshop.fluidbook.com') {
+                    $h = 'https://workshop.fluidbook.com' . SITE_PATH;
+                }
+                $res .= '<li data-type="' . $infos['type'] . '"><a class="extfb" target="_blank" href="' . $h . $infos['version'] . '/' . $infos['pattern'] . '/' . $infos['file'] . '">' . $infos['icon'] . $infos['title'] . '</a><a data-ok-content="' . __('URL copiée') . '" data-tippy-content="' . __("Copier l'URL dans le presse-papier") . '" class="clipboardurl" href="' . $h . $infos['version'] . '/' . $infos['pattern'] . '/' . $infos['file'] . '"><img src="/images/ws/link.svg"></a></li>';
             }
         }
         $res .= '</ul></div>';