mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
FIX Cast absoluteUrl() argument to string
This commit is contained in:
parent
0e5428b78b
commit
605daf5026
@ -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…
x
Reference in New Issue
Block a user