Skip to content

Commit

Permalink
Custom field "list of images" doesn't show directories properly #16708
Browse files Browse the repository at this point in the history
  • Loading branch information
eshiol committed Jul 3, 2017
1 parent a732067 commit 2fe3389
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libraries/joomla/form/fields/folderlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,7 @@ protected function getOptions()

$path = $this->directory;

if (!is_dir($path))
{
$path = JPATH_ROOT . '/' . $path;
}
$path = JPATH_ROOT . '/' . $path;

$path = JPath::clean($path);

Expand Down

0 comments on commit 2fe3389

Please sign in to comment.