Merge pull request #29 from guywatson/master

BUGFIX: fix link not appearing in submitted form fields.
This commit is contained in:
Will Rossiter 2012-04-19 17:45:12 -07:00
commit 584219b0b5

View File

@ -22,7 +22,7 @@ class SubmittedFileField extends SubmittedFormField {
$link = $this->getLink();
$title = _t('SubmittedFileField.DOWNLOADFILE', 'Download File');
if(!$link) {
if($link) {
return sprintf('<a href="%s">%s</a>', $link, $title);
}