mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Fix issue causing blogs to only work publicly when nested under another blog
This commit is contained in:
parent
adbbf1ab00
commit
ea6b046f82
@ -8,6 +8,12 @@
|
|||||||
* @subpackage blog
|
* @subpackage blog
|
||||||
*/
|
*/
|
||||||
class BlogFilter extends Lumberjack {
|
class BlogFilter extends Lumberjack {
|
||||||
|
public static function get_extra_config($class, $extension, $args) {
|
||||||
|
return array(
|
||||||
|
'has_one' => array('Parent' => 'SiteTree')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user