summaryrefslogtreecommitdiff
path: root/tpl/file/upload-ok.php
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-07-03 11:08:08 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-07-03 11:08:08 +0200
commit822a630601960797266f0bae6aea3fdc3a141d5c (patch)
tree6d47a8dfd42a69d750c42dcf68abce0ffb6395a2 /tpl/file/upload-ok.php
parent80e0f88b56ca7e306d415604c608d8bc09496e21 (diff)
downloadBits-822a630601960797266f0bae6aea3fdc3a141d5c.tar.gz
Bits-822a630601960797266f0bae6aea3fdc3a141d5c.zip
Minor changes.
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>