Skip to content

Commit

Permalink
Merge branch 'ko-specify-element-type'
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethormandy committed Feb 2, 2018
2 parents f325fa1 + de73642 commit c50cd43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/S3SecureDownloads_UrlService.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function getSetting( $setting_name ) {

public function getSignedUrl( $entry_id ) {

$entry = craft()->elements->getElementById( $entry_id );
$entry = craft()->elements->getElementById( $entry_id, ElementType::Asset );
$fileName = $entry->filename;

$sourceType = craft()->assetSources->getSourceTypeById( $entry->sourceId );
Expand Down

0 comments on commit c50cd43

Please sign in to comment.