Don't show menu on LoginForm (merged from branches/2.2.0@45907, r44960)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46087 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-12-02 21:19:54 +00:00
parent fbc70b4377
commit f02ba8d1cb

View File

@ -238,6 +238,7 @@ class Security extends Controller {
$tmpPage = new Page();
$tmpPage->Title = "Log in";
$tmpPage->URLSegment = "Security";
$tmpPage->ID = -1; // Set the page ID to -1 so we dont get the top level pages as its children
$controller = new Page_Controller($tmpPage);
$controller->init();
@ -289,11 +290,11 @@ class Security extends Controller {
$customisedController = $controller->customise(array(
"Content" => $message,
"Form" => $content
"Form" => $content,
));
} else {
$customisedController = $controller->customise(array(
"Content" => $content
"Content" => $content,
));
}