mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #494 from jsirish/bugfix/setTableNames
bugfix - set $table_name for widgets
This commit is contained in:
commit
ae72dbe166
@ -64,6 +64,11 @@ class BlogArchiveWidget extends Widget
|
|||||||
'Blog' => Blog::class,
|
'Blog' => Blog::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
private static $table_name = 'BlogArchiveWidget';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
@ -50,6 +50,11 @@ class BlogCategoriesWidget extends Widget
|
|||||||
'Blog' => Blog::class,
|
'Blog' => Blog::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
private static $table_name = 'BlogCategoriesWidget';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
@ -47,6 +47,11 @@ class BlogRecentPostsWidget extends Widget
|
|||||||
'Blog' => Blog::class,
|
'Blog' => Blog::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
private static $table_name = 'BlogRecentPostsWidget';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
@ -46,6 +46,11 @@ class BlogTagsCloudWidget extends Widget
|
|||||||
'Blog' => Blog::class,
|
'Blog' => Blog::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
private static $table_name = 'BlogTagsCloudWidget';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
@ -49,6 +49,11 @@ class BlogTagsWidget extends Widget
|
|||||||
'Blog' => Blog::class
|
'Blog' => Blog::class
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
private static $table_name = 'BlogTagsWidget';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user