"
html+=""
- $(html).insertBefore($('#newlink_row'));
+ $(html).insertAfter($('#newlink_row'));
$('#path').val('');
}
}
diff --git a/apps/files_publiclink/lib_public.php b/apps/files_publiclink/lib_public.php
index ff1df13083..22f06156e1 100644
--- a/apps/files_publiclink/lib_public.php
+++ b/apps/files_publiclink/lib_public.php
@@ -24,11 +24,7 @@ class OC_PublicLink{
/**
* get the path of that shared file
*/
- public static function getPath($token){
- //remove expired links
- $query=OC_DB::prepare("DELETE FROM *PREFIX*publiclink WHERE expire_time < ? AND expire_time!=0");
- $query->execute(array(time()));
-
+ public static function getPath($token) {
//get the path and the user
$query=OC_DB::prepare("SELECT user,path FROM *PREFIX*publiclink WHERE token=?");
$result=$query->execute(array($token));
@@ -77,4 +73,4 @@ class OC_PublicLink{
private $token;
}
-?>
\ No newline at end of file
+?>
diff --git a/apps/files_publiclink/templates/admin.php b/apps/files_publiclink/templates/admin.php
index 9ee5e0d0ea..4608877e5b 100644
--- a/apps/files_publiclink/templates/admin.php
+++ b/apps/files_publiclink/templates/admin.php
@@ -1,25 +1,18 @@
-'/>
-