summaryrefslogtreecommitdiff
path: root/forum/htdocs/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'forum/htdocs/index.php')
-rw-r--r--forum/htdocs/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/forum/htdocs/index.php b/forum/htdocs/index.php
index 99169ab..ab63d9b 100644
--- a/forum/htdocs/index.php
+++ b/forum/htdocs/index.php
@@ -17,7 +17,8 @@ if($current_user) {
case "file":
include_once($UTIL_DIR. "/file.php");
- getFile($fid);
+ if($preview) getFilePreview($fid);
+ else getFile($fid);
return;
}
}