mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #2806 from creative-commoners/pulls/5/absolute-link
FIX Cast absoluteUrl() argument to string
This commit is contained in:
commit
03bac4b72d
@ -637,7 +637,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
|||||||
if ($this->hasMethod('alternateAbsoluteLink')) {
|
if ($this->hasMethod('alternateAbsoluteLink')) {
|
||||||
return $this->alternateAbsoluteLink($action);
|
return $this->alternateAbsoluteLink($action);
|
||||||
} else {
|
} else {
|
||||||
return Director::absoluteURL($this->Link($action));
|
return Director::absoluteURL((string) $this->Link($action));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user