From 379ddb52f863a4b40fb84853ded0e79684dbc262 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 9 Dec 2022 10:03:00 +1300 Subject: [PATCH] FIX Cast absoluteUrl() argument to string --- code/Controller/AssetAdminFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Controller/AssetAdminFile.php b/code/Controller/AssetAdminFile.php index 6a2f07211..aeef6c101 100644 --- a/code/Controller/AssetAdminFile.php +++ b/code/Controller/AssetAdminFile.php @@ -40,7 +40,7 @@ public function updateCMSEditLink(&$link) { // Update edit link for this file to point to the new asset admin $controller = AssetAdmin::singleton(); - $link = Director::absoluteURL($controller->getFileEditLink($this->owner)); + $link = Director::absoluteURL((string) $controller->getFileEditLink($this->owner)); } /**