From 34a5868ae0405713188f55823a43a741cb937c5a Mon Sep 17 00:00:00 2001 From: Martin Hipp Date: Tue, 17 Sep 2019 16:49:17 +1200 Subject: [PATCH] Updated to use the ModuleResourceLoader helper syntax --- src/SingleObjectAdmin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SingleObjectAdmin.php b/src/SingleObjectAdmin.php index 2ea04cb..aa78d22 100644 --- a/src/SingleObjectAdmin.php +++ b/src/SingleObjectAdmin.php @@ -30,12 +30,12 @@ class SingleObjectAdmin extends LeftAndMain implements PermissionProvider { private static $url_rule = '/$Action/$ID/$OtherID'; - private static $menu_icon = 'resources/vendor/littlegiant/silverstripe-singleobjectadmin/dist/images/singleobjectadmin.png'; + private static $menu_icon = 'littlegiant/silverstripe-singleobjectadmin:dist/images/singleobjectadmin.png'; private static $allowed_actions = [ 'EditForm' ]; - + /** * @config * @var array Allows developers to create adaptations to this plugin by giving a class name top-level uri access @@ -312,7 +312,7 @@ public function Link($action = null) { $allowedPlugins = $this->config()->get('plugins'); $allowedPlugins[] = SingleObjectAdmin::class; - + $this->extend('updateAllowedPlugins', $allowedPlugins); // LeftAndMain methods have a top-level uri access