Try to get back the no url branch
parent
58d0d3e32c
commit
ef7a31d2e1
|
@ -1785,9 +1785,11 @@ class H5PCore {
|
|||
if ($type === 'preloadedCss' && (isset($dependency['dropCss']) && $dependency['dropCss'] === '1')) {
|
||||
return;
|
||||
}
|
||||
dpm($prefix);
|
||||
dpm($dependency['path']);
|
||||
foreach ($dependency[$type] as $file) {
|
||||
$assets[] = (object) array(
|
||||
'path' => /*$prefix . */$dependency['path'] . '/' . trim(is_array($file) ? $file['path'] : $file),
|
||||
'path' => $prefix . $dependency['path'] . '/' . trim(is_array($file) ? $file['path'] : $file),
|
||||
'version' => $dependency['version']
|
||||
);
|
||||
}
|
||||
|
@ -1807,7 +1809,7 @@ class H5PCore {
|
|||
|
||||
// Add URL prefix if not external
|
||||
if (strpos($asset->path, '://') === FALSE) {
|
||||
$url = /*$this->url .*/ $url;
|
||||
$url = $this->url . $url;
|
||||
}
|
||||
|
||||
// Add version/cache buster if set
|
||||
|
@ -1839,7 +1841,6 @@ class H5PCore {
|
|||
$dependency['preloadedJs'] = explode(',', $dependency['preloadedJs']);
|
||||
$dependency['preloadedCss'] = explode(',', $dependency['preloadedCss']);
|
||||
}
|
||||
|
||||
$dependency['version'] = "?ver={$dependency['majorVersion']}.{$dependency['minorVersion']}.{$dependency['patchVersion']}";
|
||||
$this->getDependencyAssets($dependency, 'preloadedJs', $files['scripts'], $prefix);
|
||||
$this->getDependencyAssets($dependency, 'preloadedCss', $files['styles'], $prefix);
|
||||
|
|
Loading…
Reference in New Issue