From 5b0197f7c31fbf60fcc7dd002f3d4e7a0bbadc95 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 9 Dec 2022 10:01:07 +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..e59bd6bb6 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)); } /**