From 46b65cbe660a601778563d404c84a2a33b48495a Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Fri, 25 Oct 2024 13:35:29 +1300 Subject: [PATCH] API Update code to reflect changes in silverstripe/admin --- code/Controller/AssetAdmin.php | 5 +---- code/Controller/AssetAdminOpen.php | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/code/Controller/AssetAdmin.php b/code/Controller/AssetAdmin.php index 13667d200..618c3139f 100644 --- a/code/Controller/AssetAdmin.php +++ b/code/Controller/AssetAdmin.php @@ -62,10 +62,7 @@ class AssetAdmin extends AssetAdminOpen implements PermissionProvider private static $menu_icon_class = 'font-icon-image'; - /** - * @deprecated 5.4.0 Will be renamed to model_class - */ - private static $tree_class = Folder::class; + private static $model_class = Folder::class; private static $url_handlers = [ // Legacy redirect for SS3-style detail view diff --git a/code/Controller/AssetAdminOpen.php b/code/Controller/AssetAdminOpen.php index 54522e29f..d17ebcfb7 100644 --- a/code/Controller/AssetAdminOpen.php +++ b/code/Controller/AssetAdminOpen.php @@ -37,7 +37,7 @@ class AssetAdminOpen extends LeftAndMain private static string $menu_icon_class = 'font-icon-image'; - private static string $tree_class = Folder::class; + private static string $model_class = Folder::class; private static array $url_handlers = [ 'GET api/read/$ID!' => 'apiRead',