mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
bugfix - set $table_name for widgets
SilverStripe 4.0.1 throws warnings when the widget module is installed.
This commit is contained in:
parent
1d6cf1dec6
commit
db071b2692
@ -64,6 +64,11 @@ class BlogArchiveWidget extends Widget
|
||||
'Blog' => Blog::class,
|
||||
];
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private static $table_name = 'BlogArchiveWidget';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
@ -50,6 +50,11 @@ class BlogCategoriesWidget extends Widget
|
||||
'Blog' => Blog::class,
|
||||
];
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private static $table_name = 'BlogCategoriesWidget';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
@ -47,6 +47,11 @@ class BlogRecentPostsWidget extends Widget
|
||||
'Blog' => Blog::class,
|
||||
];
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private static $table_name = 'BlogRecentPostsWidget';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
@ -46,6 +46,11 @@ class BlogTagsCloudWidget extends Widget
|
||||
'Blog' => Blog::class,
|
||||
];
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private static $table_name = 'BlogTagsCloudWidget';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
@ -49,6 +49,11 @@ class BlogTagsWidget extends Widget
|
||||
'Blog' => Blog::class
|
||||
];
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private static $table_name = 'BlogTagsWidget';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user