Skip to content

Commit

Permalink
Merge pull request #532 from creative-commoners/pulls/2/absolute-link
Browse files Browse the repository at this point in the history
FIX Cast absoluteUrl() argument to string
  • Loading branch information
GuySartorelli authored Dec 13, 2022
2 parents 3495084 + 459d421 commit c10dd20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ public function getAbsoluteURL()
{
$url = $this->getURL();
if ($url) {
return Director::absoluteURL($url);
return Director::absoluteURL((string) $url);
}
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/DBFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public function getAbsoluteURL()
if (!$this->exists()) {
return null;
}
return Director::absoluteURL($this->getURL());
return Director::absoluteURL((string) $this->getURL());
}

public function getMetaData()
Expand Down

0 comments on commit c10dd20

Please sign in to comment.