summaryrefslogtreecommitdiff
path: root/tpl/file/upload-ok.php
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/file/upload-ok.php')
-rw-r--r--tpl/file/upload-ok.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tpl/file/upload-ok.php b/tpl/file/upload-ok.php
index 1d6559f..2d0ccdb 100644
--- a/tpl/file/upload-ok.php
+++ b/tpl/file/upload-ok.php
@@ -5,8 +5,9 @@ $minurl = $baseurl . $id . "-min." . $type;
$imgurl = $baseurl . $id . "." . $type;
?>
- <p>Preview : <a href="<?php echo $minurl; ?>"><?php echo $minurl; ?></a><br />
- Image : <a href="<?php echo $imgurl; ?>"><?php echo $imgurl; ?></a><br />
+ <p>
+ <?php if (has_mini($type)) { ?>Preview : <a href="<?php echo $minurl; ?>"><?php echo $minurl; ?></a><br /><?php } ?>
+ File : <a href="<?php echo $imgurl; ?>"><?php echo $imgurl; ?></a><br />
Markdown code : <code><?php echo (has_mini($type) ? '!' : '') . '[' . $name; ?>](<?php echo $imgurl; ?>)</code></p>
<p>
<p>