Small optimization
authorMarcel Werk <burntime@woltlab.com>
Mon, 7 Oct 2013 10:50:20 +0000 (12:50 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 7 Oct 2013 10:50:20 +0000 (12:50 +0200)
com.woltlab.wcf/templates/login.tpl
wcfsetup/install/files/lib/form/LoginForm.class.php

index e91de2836327781489895c9bc690426191d198fe..b24f3aacb76b6be85f74ea0567f6d5d519b82132 100644 (file)
@@ -38,7 +38,7 @@
        {/hascontent}
 </div>
 
-<form method="post" action="{link controller='Login'}{/link}" id="loginForm">
+<form method="post" action="{@$loginController}" id="loginForm">
        <div class="container containerPadding marginTop">
                <fieldset>
                        <legend>{lang}wcf.user.login.data{/lang}</legend>
index 510cde6d1d1cfe41a2ef44bf17194483acfec8f0..0152cd56cc155cecf3df41ad8bd9df4fb6842e08 100644 (file)
@@ -86,7 +86,8 @@ class LoginForm extends \wcf\acp\form\LoginForm {
                
                WCF::getTPL()->assign(array(
                        'useCookies' => $this->useCookies,
-                       'supportsPersistentLogins' => UserAuthenticationFactory::getInstance()->getUserAuthentication()->supportsPersistentLogins()
+                       'supportsPersistentLogins' => UserAuthenticationFactory::getInstance()->getUserAuthentication()->supportsPersistentLogins(),
+                       'loginController' => LinkHandler::getInstance()->getLink('Login')
                ));
        }