Possible error in variable naming
This commit is contained in:
parent
f8571672d1
commit
280a1af4fe
1 changed files with 3 additions and 3 deletions
|
@ -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']));
|
||||
|
|
Reference in a new issue