aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.travis.yml1
-rw-r--r--index.php4
-rw-r--r--plugins/markdown/markdown.meta2
-rw-r--r--tpl/loginform.html4
4 files changed, 7 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 88cc827d..03071a47 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,6 +4,7 @@ cache:
4 directories: 4 directories:
5 - $HOME/.composer/cache 5 - $HOME/.composer/cache
6php: 6php:
7 - 7.1
7 - 7.0 8 - 7.0
8 - 5.6 9 - 5.6
9 - 5.5 10 - 5.5
diff --git a/index.php b/index.php
index 835fd7d2..eb73941d 100644
--- a/index.php
+++ b/index.php
@@ -1245,10 +1245,12 @@ function renderPage($conf, $pluginManager, $LINKSDB)
1245 // Edit 1245 // Edit
1246 $created = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $linkdate); 1246 $created = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $linkdate);
1247 $updated = new DateTime(); 1247 $updated = new DateTime();
1248 $shortUrl = $LINKSDB[$id]['shorturl'];
1248 } else { 1249 } else {
1249 // New link 1250 // New link
1250 $created = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $linkdate); 1251 $created = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $linkdate);
1251 $updated = null; 1252 $updated = null;
1253 $shortUrl = link_small_hash($created, $id);
1252 } 1254 }
1253 1255
1254 // Remove multiple spaces. 1256 // Remove multiple spaces.
@@ -1275,7 +1277,7 @@ function renderPage($conf, $pluginManager, $LINKSDB)
1275 'created' => $created, 1277 'created' => $created,
1276 'updated' => $updated, 1278 'updated' => $updated,
1277 'tags' => str_replace(',', ' ', $tags), 1279 'tags' => str_replace(',', ' ', $tags),
1278 'shorturl' => link_small_hash($created, $id), 1280 'shorturl' => $shortUrl,
1279 ); 1281 );
1280 1282
1281 // If title is empty, use the URL as title. 1283 // If title is empty, use the URL as title.
diff --git a/plugins/markdown/markdown.meta b/plugins/markdown/markdown.meta
index 8df2ed0b..322856ea 100644
--- a/plugins/markdown/markdown.meta
+++ b/plugins/markdown/markdown.meta
@@ -1,4 +1,4 @@
1description="Render shaare description with Markdown syntax.<br><strong>Warning</strong>: 1description="Render shaare description with Markdown syntax.<br><strong>Warning</strong>:
2If your shaared descriptions containing HTML tags before enabling the markdown plugin, 2If your shaared descriptions contained HTML tags before enabling the markdown plugin,
3enabling it might break your page. 3enabling it might break your page.
4See the <a href=\"https://github.com/shaarli/Shaarli/tree/master/plugins/markdown#html-rendering\">README</a>." 4See the <a href=\"https://github.com/shaarli/Shaarli/tree/master/plugins/markdown#html-rendering\">README</a>."
diff --git a/tpl/loginform.html b/tpl/loginform.html
index a49b42d3..84176385 100644
--- a/tpl/loginform.html
+++ b/tpl/loginform.html
@@ -2,7 +2,7 @@
2<html> 2<html>
3<head>{include="includes"}</head> 3<head>{include="includes"}</head>
4<body 4<body
5{if="ban_canLogin()"} 5{if="ban_canLogin($conf)"}
6 {if="empty($username)"} 6 {if="empty($username)"}
7 onload="document.loginform.login.focus();" 7 onload="document.loginform.login.focus();"
8 {else} 8 {else}
@@ -13,7 +13,7 @@
13 {include="page.header"} 13 {include="page.header"}
14 14
15 <div id="headerform"> 15 <div id="headerform">
16 {if="!ban_canLogin()"} 16 {if="!ban_canLogin($conf)"}
17 You have been banned from login after too many failed attempts. Try later. 17 You have been banned from login after too many failed attempts. Try later.
18 {else} 18 {else}
19 <form method="post" name="loginform"> 19 <form method="post" name="loginform">