mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
refactor: variable naming in Requirements_Backend::resolveCSSReferences()
This commit is contained in:
parent
6975815513
commit
4994844729
@ -1458,10 +1458,10 @@ MESSAGE
|
||||
$content = preg_replace_callback('#(url\([\n\r\s\'"]*)([^\s\)\?\'"]+)#i', function ($match) use ($fileUrlDir) {
|
||||
[ $fullMatch, $prefix, $relativePath ] = $match;
|
||||
if ($relativePath[0] === '/' || false !== strpos($relativePath, '://')) {
|
||||
return $prefix . $relativePath;
|
||||
return $fullMatch;
|
||||
}
|
||||
$full = FilesystemPath::canonicalize(FilesystemPath::join($fileUrlDir, $relativePath));
|
||||
return $prefix . $full;
|
||||
$substitute = FilesystemPath::canonicalize(FilesystemPath::join($fileUrlDir, $relativePath));
|
||||
return $prefix . $substitute;
|
||||
}, $content);
|
||||
return $content;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user