mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Compatibility issues with core index (#550)
Making index function compatible with SilverStripe\CMS\Model\RedirectorPageController, this stops issues when module installed and also creating a custom index function in PageController
This commit is contained in:
parent
8ae3614335
commit
ab8325f965
@ -12,6 +12,7 @@ use SilverStripe\ORM\FieldType\DBDatetime;
|
|||||||
use SilverStripe\ORM\PaginatedList;
|
use SilverStripe\ORM\PaginatedList;
|
||||||
use SilverStripe\Security\Member;
|
use SilverStripe\Security\Member;
|
||||||
use SilverStripe\View\Parsers\URLSegmentFilter;
|
use SilverStripe\View\Parsers\URLSegmentFilter;
|
||||||
|
use SilverStripe\Control\HTTPRequest;
|
||||||
|
|
||||||
class BlogController extends PageController
|
class BlogController extends PageController
|
||||||
{
|
{
|
||||||
@ -62,7 +63,7 @@ class BlogController extends PageController
|
|||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index(HTTPRequest $request)
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var Blog $dataRecord
|
* @var Blog $dataRecord
|
||||||
|
Loading…
Reference in New Issue
Block a user