diff --git a/security/Security.php b/security/Security.php index afbcfdf80..10e6bc129 100644 --- a/security/Security.php +++ b/security/Security.php @@ -386,7 +386,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() { @@ -424,7 +424,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')); } @@ -483,7 +483,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')); } @@ -553,7 +553,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