From: vincent@cubedesigners.com Date: Thu, 31 Jan 2019 16:08:59 +0000 (+0000) Subject: wait #2565 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=9bc6fb2185e1f319e12a2f6ecaa9a6ff013ffa72;p=cubeextranet.git wait #2565 @0.5 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index c6ade3746..a6528ba5b 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -57,6 +57,8 @@ class wsHTML5Link { $init['scorm'] = self::isScorm($init); + $init['to'] = self::replaceCustomURL($init['to']); + switch ($init['type']) { case 1: case 2: @@ -181,6 +183,17 @@ class wsHTML5Link } } + public static function replaceCustomURL($url) + { + $url = trim($url); + if (strpos($url, 'custom:') === 0) { + $e = explode(':', $url, 2); + return customLink::_getURL($e[1]); + } + + return $url; + } + public static function getMultimediaInstance($id, $init, &$compiler) { if ($init['alternative'] == '') {