mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +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() {
|
||||
$id = parent::currentPageID();
|
||||
|
||||
$this->extend('updateCurrentPageID', $id);
|
||||
|
||||
// Fall back to homepage record
|
||||
if(!$id) {
|
||||
$homepageSegment = RootURLController::get_homepage_link();
|
||||
|
Loading…
Reference in New Issue
Block a user