Skip to content

Commit

Permalink
Changed to resolve url
Browse files Browse the repository at this point in the history
  • Loading branch information
UndefinedOffset committed Sep 24, 2020
1 parent 9a9feb8 commit d4d39eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DropzoneFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function getPreviewThumbnail($w = null, $h = null)
*/
protected function getFilenameForType($ext, $size)
{
return ModuleResourceLoader::singleton()->resolveResource(sprintf(
return ModuleResourceLoader::singleton()->resolveURL(sprintf(
'unclecheese/dropzone:images/file-icons/%spx/%s.png',
$size,
strtolower($ext)
Expand Down
2 changes: 1 addition & 1 deletion src/FileAttachmentField.php
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ public function AttachedFiles()
public function RootThumbnailsDir()
{
return $this->getSetting('thumbnailsDir') ?:
ModuleResourceLoader::singleton()->resolveResource('unclecheese/dropzone:images/file-icons')->getURL();
ModuleResourceLoader::singleton()->resolveURL('unclecheese/dropzone:images/file-icons');
}

/**
Expand Down

0 comments on commit d4d39eb

Please sign in to comment.