]> _ Git - cubeextranet.git/commitdiff
fix #3644 @1.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 18 May 2020 11:52:41 +0000 (11:52 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 18 May 2020 11:52:41 +0000 (11:52 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index 3dae0f9bac5fedcd01318538b32aaf9803dc40b0..44f1fa476c2647ea52643d6345a1c1ea74918e22 100644 (file)
@@ -1366,8 +1366,9 @@ class htmlMultimediaLink extends wsHTML5Link
             }
 
             foreach ($this->_config['inject'] as $i) {
-                $infos = ['path' => 'data/links/' . str_replace('.', '_', $this->alternative) . '/'];
+                $infos = ['path' => 'data/links/' . str_replace('.', '_', $this->alternative)];
                 $i = str_replace('$id', '"#l_' . $this->id . '"', $i);
+                $i = str_replace('$path', '"'.$infos['path'].'"', $i);
                 $i = str_replace('$init', CubeIT_Util_Json::encode($infos), $i);
                 $this->compiler->htmlmultimedia[] = $i;
             }