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

@ -64,10 +64,10 @@ function theme_filefield_formatter_url_plain($element) {
if (empty($item['filepath'])) {
return '';
}
// 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']));
@ -127,7 +127,7 @@ function theme_filefield_file($file) {
// Set options as per anchor format described at
// http://microformats.org/wiki/file-format-examples
// TODO: Possibly move to until I move to the more complex format described
// TODO: Possibly move to until I move to the more complex format described
// at http://darrelopry.com/story/microformats-and-media-rfc-if-you-js-or-css
$options = array(
'attributes' => array(