BUGFIX Setting ID = -1 on Security/lostpassword to avoid showing toplevel navigation (see #5086)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@99479 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-02-21 03:42:53 +00:00 committed by Sam Minnee
parent 2595798833
commit 5c92712924

View File

@ -410,6 +410,7 @@ class Security extends Controller {
$tmpPage = new Page();
$tmpPage->Title = _t('Security.LOSTPASSWORDHEADER', 'Lost Password');
$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();