From 1b5465809dfa2b118fe4177aa6e2dfce8452171e Mon Sep 17 00:00:00 2001 From: sheadawson Date: Mon, 21 Oct 2013 17:42:45 +1100 Subject: [PATCH] MINOR add hook for extensions to update current page id, before falling back to default --- code/controllers/CMSMain.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/controllers/CMSMain.php b/code/controllers/CMSMain.php index 86cedb15..68d33377 100644 --- a/code/controllers/CMSMain.php +++ b/code/controllers/CMSMain.php @@ -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();