Skip to content

Commit

Permalink
Updated to use the ModuleResourceLoader helper syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhipp committed Sep 17, 2019
1 parent 911cf52 commit 34a5868
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SingleObjectAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 34a5868

Please sign in to comment.