mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
c4ab634207
commit
2271dc5d4a
@ -47,4 +47,5 @@ abstract class LoginForm extends Form {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user