From e94df0d0ac3aa862ed16486d017991b8cd80a9c7 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@enhancesoft.com> Date: Wed, 22 Aug 2018 00:41:24 +0000 Subject: [PATCH] Lint: Lint text fixes --- include/class.forms.php | 4 +++- setup/test/tests/stubs.php | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/class.forms.php b/include/class.forms.php index 2e00f7391..5022a8ce2 100644 --- a/include/class.forms.php +++ b/include/class.forms.php @@ -4604,7 +4604,9 @@ class FreeTextWidget extends Widget { if (($attachments = $this->field->getAttachments()) && count($attachments)) { ?> <section class="freetext-files"> <div class="title"><?php echo __('Related Resources'); ?></div> - <?php foreach ($attachments->all() as $attach) { ?> + <?php foreach ($attachments->all() as $attach) { + $filename = $attach->getFilename(); + ?> <div class="file"> <a href="<?php echo $attach->file->getDownloadUrl(); ?>" target="_blank" download="<?php echo $filename; ?>" diff --git a/setup/test/tests/stubs.php b/setup/test/tests/stubs.php index 4cb35183c..4c96e7104 100644 --- a/setup/test/tests/stubs.php +++ b/setup/test/tests/stubs.php @@ -229,6 +229,7 @@ class Mail_mime { class mPDF { function Output() {} + function SetAutoFont() {} } class HashPassword { -- GitLab