]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Fixes can login function call in loginform.html 714/head
authorArthurHoaro <arthur@hoa.ro>
Thu, 15 Dec 2016 09:57:11 +0000 (10:57 +0100)
committerArthurHoaro <arthur@hoa.ro>
Thu, 15 Dec 2016 09:57:11 +0000 (10:57 +0100)
Fixes #711

.travis.yml
tpl/loginform.html

index 9ffb3d007b971db6e450c9744ffd3e778be3b7b7..6ff1b20f564e130e345821eaefe75a0fb829d55f 100644 (file)
@@ -4,6 +4,7 @@ cache:
   directories:
     - $HOME/.composer/cache
 php:
+  - 7.1
   - 7.0
   - 5.6
   - 5.5
index a49b42d3c0de71aa1d699c05dd05abe7d981c78d..84176385765837973d77be29941db622ccad1f6a 100644 (file)
@@ -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">