Possible error in variable naming

This commit is contained in:
Manuel Cillero 2017-07-26 19:49:31 +02:00
parent f8571672d1
commit 280a1af4fe

View file

@ -67,7 +67,7 @@ function theme_filefield_formatter_url_plain($element) {
// Check for remote filepath, if so return the raw path with protocol prefix
if (strpos($item['filepath'], 'http://') === 0 || strpos($item['filepath'], 'https://' === 0)) {
return l($file['filepath'], $item['filepath']);
return l($item['filepath'], $item['filepath']);
}
else {
return file_create_url(field_file_urlencode_path($item['filepath']));