Skip to content

Commit 5720269

Browse files
authored
[4.3] Update MediaField.php (#40617)
1 parent c201854 commit 5720269

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libraries/src/Form/Field/MediaField.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,9 @@ public function getLayoutData()
293293
$this->folder = $adapter . ':' . $path;
294294
} elseif ($this->value && is_file(JPATH_ROOT . '/' . $this->value)) {
295295
/**
296-
* Local image, for example images/sampledata/cassiopeia/nasa2-640.jpg . We need to validate and make sure
297-
* the top level folder is one of the directory configured in filesystem local plugin to avoid error message
298-
* displayed in manage when users click on Select button to select a new image
296+
* Local image, for example images/sampledata/cassiopeia/nasa2-640.jpg. We need to validate and make sure
297+
* the top level folder is one of the directories configured in the filesystem local plugin to avoid an error
298+
* message being displayed when users click on Select button to select a new image.
299299
*/
300300
$paths = explode('/', Path::clean($this->value, '/'));
301301

@@ -310,8 +310,8 @@ public function getLayoutData()
310310
/**
311311
* This is the case where a folder is configured in directory attribute of the form field. The directory needs
312312
* to be a relative folder of the folder configured in Path to Images Folder config option of Media component.
313-
* Same with a already stored local image above, we need to validate and make sure top level folder is one of the directory
314-
* configured in filesystem local plugin
313+
* Same with an already stored local image above, we need to validate and make sure the top level folder is one of the
314+
* directories configured in the filesystem local plugin.
315315
*/
316316
$path = ComponentHelper::getParams('com_media')->get('image_path', 'images') . '/' . $this->directory;
317317
$paths = explode('/', Path::clean($path, '/'));

0 commit comments

Comments
 (0)