diff --git a/security/Security.php b/security/Security.php index df93e9461..13bfe0911 100644 --- a/security/Security.php +++ b/security/Security.php @@ -394,7 +394,7 @@ class Security extends Controller { Session::clear('Security.Message'); // custom processing - return $customisedController->renderWith(array('Security_login', 'Security', $this->stat('template_main'))); + return $customisedController->renderWith(array('Security_login', 'Security', $this->stat('template_main'), 'ContentController')); } function basicauthlogin() { @@ -431,7 +431,7 @@ class Security extends Controller { )); //Controller::$currentController = $controller; - return $customisedController->renderWith(array('Security_lostpassword', 'Security', $this->stat('template_main'))); + return $customisedController->renderWith(array('Security_lostpassword', 'Security', $this->stat('template_main'), 'ContentController')); } @@ -489,7 +489,7 @@ class Security extends Controller { )); //Controller::$currentController = $controller; - return $customisedController->renderWith(array('Security_passwordsent', 'Security', $this->stat('template_main'))); + return $customisedController->renderWith(array('Security_passwordsent', 'Security', $this->stat('template_main'), 'ContentController')); } @@ -559,7 +559,7 @@ class Security extends Controller { } //Controller::$currentController = $controller; - return $customisedController->renderWith(array('Security_changepassword', 'Security', $this->stat('template_main'))); + return $customisedController->renderWith(array('Security_changepassword', 'Security', $this->stat('template_main'), 'ContentController')); } /** diff --git a/templates/ContentController.ss b/templates/ContentController.ss index e2d8749b2..d581620c7 100644 --- a/templates/ContentController.ss +++ b/templates/ContentController.ss @@ -8,6 +8,7 @@

$Title

$Content + $Form

Generated with the default ContentController.ss template