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:
Will Dawber 2018-08-27 11:20:42 +12:00 committed by Robbie Averill
parent 829d68211a
commit da3a690871

View File

@ -12,6 +12,7 @@ use SilverStripe\ORM\FieldType\DBDatetime;
use SilverStripe\ORM\PaginatedList;
use SilverStripe\Security\Member;
use SilverStripe\View\Parsers\URLSegmentFilter;
use SilverStripe\Control\HTTPRequest;
class BlogController extends PageController
{
@ -62,7 +63,7 @@ class BlogController extends PageController
/**
* @return string
*/
public function index()
public function index(HTTPRequest $request)
{
/**
* @var Blog $dataRecord