summaryrefslogtreecommitdiff
path: root/forum
diff options
context:
space:
mode:
Diffstat (limited to 'forum')
-rw-r--r--forum/utils/files.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/forum/utils/files.php b/forum/utils/files.php
index 62b2b52..7356ff8 100644
--- a/forum/utils/files.php
+++ b/forum/utils/files.php
@@ -20,9 +20,9 @@ class File {
global $PERMSTORE, $current_user, $users;
echo " <div class=\"file\">\n";
if($current_user->uid == 0) {
- echo " <a class=\"delete\" href=\"?mode=filehandler&amp;task=delete&amp;fid=" . $this->fid . "\">X</a>\n";
+ echo " <a class=\"delete\" onclick=\"return confirm('Really delete?')\" onkeypress=\"return confirm('Really delete?')\" href=\"?mode=filehandler&amp;task=delete&amp;fid=" . $this->fid . "\">X</a>\n";
}
- echo " <div class=\"preview\"><a href=\"" . $this->link() . "\"><img src=\"?mode=file&amp;preview=1&amp;fid=" . $this->fid . "\"</a></div>\n";
+ echo " <div class=\"preview\"><a href=\"" . $this->link() . "\"><img src=\"?mode=file&amp;preview=1&amp;fid=" . $this->fid . "\"/></a></div>\n";
echo " <div class=\"insertcommand\">{{" . $this->fid . "}}</div>\n";
echo " <div class=\"filename\"><a href=\"" . $this->link() . "\">" . $this->name . "</a></div>\n";
echo " <div class=\"mimetype\">" . $this->mimetype. "</div>\n";
@@ -180,4 +180,4 @@ class Files {
}
}
}
-?> \ No newline at end of file
+?>