From 280a1af4fedfb9c959a0c96527cf029c2e7f82ca Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Wed, 26 Jul 2017 19:49:31 +0200 Subject: [PATCH] Possible error in variable naming --- sites/all/modules/filefield/filefield_formatter.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sites/all/modules/filefield/filefield_formatter.inc b/sites/all/modules/filefield/filefield_formatter.inc index 5742ff8..cfba21c 100644 --- a/sites/all/modules/filefield/filefield_formatter.inc +++ b/sites/all/modules/filefield/filefield_formatter.inc @@ -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(