mirror of
https://github.com/getgrav/grav.git
synced 2026-03-06 04:21:34 +01:00
fix mixed slashes in paths
This commit is contained in:
@@ -58,9 +58,9 @@ class Media extends Getters
|
||||
|
||||
if ($type === 'alternative') {
|
||||
$media["{$basename}.{$ext}"][$type] = isset($media["{$basename}.{$ext}"][$type]) ? $media["{$basename}.{$ext}"][$type] : [];
|
||||
$media["{$basename}.{$ext}"][$type][$extra] = $info->getPathname();
|
||||
$media["{$basename}.{$ext}"][$type][$extra] = str_replace(DIRECTORY_SEPARATOR, DS, $info->getPathname());;
|
||||
} else {
|
||||
$media["{$basename}.{$ext}"][$type] = $info->getPathname();
|
||||
$media["{$basename}.{$ext}"][$type] = str_replace(DIRECTORY_SEPARATOR, DS, $info->getPathname());;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user