MINOR: tweaking implementation

This commit is contained in:
Peter Thaleikis 2019-04-12 10:44:32 +07:00 committed by Robbie Averill
parent c8914cc779
commit afecae4eba
3 changed files with 1 additions and 17 deletions

View File

@ -8,7 +8,7 @@ SilverStripe\Security\Member:
---
Name: featuredpostswidget
Only:
moduleexists: widgets
moduleexists: silverstripe/widgets
---
SilverStripe\Blog\Model\BlogPost:
extensions:

View File

@ -28,7 +28,5 @@ class BlogPostFeaturedExtension extends DataExtension
'Root.PostOptions',
CheckboxField::create('FeaturedInWidget', _t(__CLASS__ . '.FEATURED', 'Include Post in Feature Widget'))
);
return $fields;
}
}

View File

@ -1,14 +0,0 @@
<?php
namespace SilverStripe\Blog\Widgets;
use SilverStripe\Widgets\Model\WidgetController;
if (!class_exists(WidgetController::class)) {
return;
}
class BlogFeaturedPostsWidgetController extends WidgetController
{
}