Skip to content

Commit

Permalink
API Update code to reflect changes in silverstripe/admin (#1504)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Nov 6, 2024
1 parent 598d96f commit 9fad212
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions code/Controller/AssetAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion code/Controller/AssetAdminOpen.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 9fad212

Please sign in to comment.