Possible error in variable naming
This commit is contained in:
parent
f8571672d1
commit
280a1af4fe
1 changed files with 3 additions and 3 deletions
|
@ -64,10 +64,10 @@ function theme_filefield_formatter_url_plain($element) {
|
||||||
if (empty($item['filepath'])) {
|
if (empty($item['filepath'])) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for remote filepath, if so return the raw path with protocol prefix
|
// Check for remote filepath, if so return the raw path with protocol prefix
|
||||||
if (strpos($item['filepath'], 'http://') === 0 || strpos($item['filepath'], 'https://' === 0)) {
|
if (strpos($item['filepath'], 'http://') === 0 || strpos($item['filepath'], 'https://' === 0)) {
|
||||||
return l($file['filepath'], $item['filepath']);
|
return l($item['filepath'], $item['filepath']);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return file_create_url(field_file_urlencode_path($item['filepath']));
|
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
|
// Set options as per anchor format described at
|
||||||
// http://microformats.org/wiki/file-format-examples
|
// 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
|
// at http://darrelopry.com/story/microformats-and-media-rfc-if-you-js-or-css
|
||||||
$options = array(
|
$options = array(
|
||||||
'attributes' => array(
|
'attributes' => array(
|
||||||
|
|
Reference in a new issue