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