mlanthaler: Refactored the created code since the coding conventions for static methods were changed (ticket #49).

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42155 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-16 17:30:12 +00:00
parent c4ab634207
commit 2271dc5d4a
2 changed files with 8 additions and 3 deletions

View File

@ -47,4 +47,5 @@ abstract class LoginForm extends Form {
}
}
?>

View File

@ -215,10 +215,14 @@ class Security extends Controller {
return $controller->renderWith(array("Security_login", "Page"));
} else {
// Needed because the <base href=".."> in the template makes problems
// with the tabstrip library otherwise
$link_base = Director::absoluteURL($this->Link("login"));
$forms = $this->GetLoginForms();
$content = '';
foreach($forms as $form)
$content .= $form->forTemplate();
$content = '<div id="Form_EditForm">';
$content .= '<ul class="tabstrip">';
$content_forms = '';
foreach($forms as $form) {
$content .= "<li><a href=\"$link_base#{$form->FormName()}_tab\">{$form->getAuthenticator()->get_name()}</a></li>\n";