Explorar el Código

Fixes can login function call in loginform.html

Fixes #711
ArthurHoaro hace 7 años
padre
commit
4cfe8d3303
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 1 0
      .travis.yml
  2. 2 2
      tpl/loginform.html

+ 1 - 0
.travis.yml

@@ -4,6 +4,7 @@ cache:
   directories:
     - $HOME/.composer/cache
 php:
+  - 7.1
   - 7.0
   - 5.6
   - 5.5

+ 2 - 2
tpl/loginform.html

@@ -2,7 +2,7 @@
 <html>
 <head>{include="includes"}</head>
 <body
-{if="ban_canLogin()"}
+{if="ban_canLogin($conf)"}
   {if="empty($username)"}
     onload="document.loginform.login.focus();"
   {else}
@@ -13,7 +13,7 @@
   {include="page.header"}
 
   <div id="headerform">
-    {if="!ban_canLogin()"}
+    {if="!ban_canLogin($conf)"}
       You have been banned from login after too many failed attempts. Try later.
     {else}
       <form method="post" name="loginform">