summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filefield.module5
1 files changed, 2 insertions, 3 deletions
diff --git a/filefield.module b/filefield.module
index 1d62e43..92cfa42 100644
--- a/filefield.module
+++ b/filefield.module
@@ -549,7 +549,7 @@ function _filefield_file_form($node, $field, $file) {
);
$form['url'] = array(
'#type' => 'markup',
- '#value' => t('URL') .': '. $url,
+ '#value' => t('URL: !url', array('!url' => $url)),
'#prefix' => '<div class="filefield-edit-file-url">',
'#suffix' => '</div>',
);
@@ -717,9 +717,8 @@ function theme_filefield($file) {
: $file['filepath'];
$url = file_create_url($path);
- $name = $file['filename'];
$desc = $file['description'];
- return '<a href="'. check_url($url) .'">'. check_plain($desc) .'</a>';
+ return l($desc, $url);
}
return '';
}