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 8ae3614335
commit ab8325f965

View File

@ -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