From f02ba8d1cb70e7e1608060c9bf168c0a7c4e5a4b Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Sun, 2 Dec 2007 21:19:54 +0000 Subject: [PATCH] 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 --- security/Security.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/security/Security.php b/security/Security.php index 49cc60e35..48ed4e3f6 100644 --- a/security/Security.php +++ b/security/Security.php @@ -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, )); }