MINOR add hook for extensions to update current page id, before falling back to default

This commit is contained in:
sheadawson 2013-10-21 17:42:45 +11:00
parent 44fdf66834
commit 1b5465809d
1 changed files with 2 additions and 0 deletions

View File

@ -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();