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
This commit is contained in:
Sam Minnee 2007-08-29 06:04:46 +00:00
parent b7ec0fd4df
commit 454949a4fc

View File

@ -99,7 +99,7 @@ class Security extends Controller {
Requirements::javascript("jsparty/prototype_improvements.js"); Requirements::javascript("jsparty/prototype_improvements.js");
Requirements::javascript("jsparty/scriptaculous/effects.js"); Requirements::javascript("jsparty/scriptaculous/effects.js");
$tmpPage = new Page(); $tmpPage = DataObject::get_one('Page', "URLSegment = 'home'");
$tmpPage->Title = "Log in"; $tmpPage->Title = "Log in";
$tmpPage->URLSegment = "Security"; $tmpPage->URLSegment = "Security";