mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR add hook for extensions to update current page id, before falling back to default
This commit is contained in:
parent
44fdf66834
commit
1b5465809d
@ -811,6 +811,8 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
public function currentPageID() {
|
public function currentPageID() {
|
||||||
$id = parent::currentPageID();
|
$id = parent::currentPageID();
|
||||||
|
|
||||||
|
$this->extend('updateCurrentPageID', $id);
|
||||||
|
|
||||||
// Fall back to homepage record
|
// Fall back to homepage record
|
||||||
if(!$id) {
|
if(!$id) {
|
||||||
$homepageSegment = RootURLController::get_homepage_link();
|
$homepageSegment = RootURLController::get_homepage_link();
|
||||||
|
Loading…
Reference in New Issue
Block a user