From 7d8a031cbdd73a515473eb8f6bd53096a23fa5ca Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 15 Apr 2022 10:47:18 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1556 --- wire/modules/Fieldtype/FieldtypeFile/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/modules/Fieldtype/FieldtypeFile/config.php b/wire/modules/Fieldtype/FieldtypeFile/config.php index edf2aaf1..c2e0dc60 100644 --- a/wire/modules/Fieldtype/FieldtypeFile/config.php +++ b/wire/modules/Fieldtype/FieldtypeFile/config.php @@ -195,7 +195,7 @@ class FieldtypeFileConfiguration extends Wire { $example = array( '// ' . $this->_('Display all files with tag “sidebar”'), 'foreach($page->images as $file) {', - ' if($file->hasTag("sidebar") {', + ' if($file->hasTag("sidebar")) {', ' echo "url\' alt=\'$file->description\'>";', ' }', '}',