From 454949a4fcc969409e44cd454a785b9d5326745b Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 29 Aug 2007 06:04:46 +0000 Subject: [PATCH] Use the homepage as a model for the security base-page, so that things like the current subsite are factored in git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41018 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/Security.php b/security/Security.php index 9f5c4bcbb..0e28c395a 100644 --- a/security/Security.php +++ b/security/Security.php @@ -99,7 +99,7 @@ class Security extends Controller { Requirements::javascript("jsparty/prototype_improvements.js"); Requirements::javascript("jsparty/scriptaculous/effects.js"); - $tmpPage = new Page(); + $tmpPage = DataObject::get_one('Page', "URLSegment = 'home'"); $tmpPage->Title = "Log in"; $tmpPage->URLSegment = "Security";