summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tpl/file/upload-ok.php5
-rw-r--r--tpl/file/upload.php4
2 files changed, 5 insertions, 4 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>
diff --git a/tpl/file/upload.php b/tpl/file/upload.php
index 31bdda7..de2ea88 100644
--- a/tpl/file/upload.php
+++ b/tpl/file/upload.php
@@ -6,8 +6,8 @@ if ($user['id'] == 0) $message = "You should create an account so that you can t
$form_message = "If you upload an image, a $img_mini_width"."px preview will be created.";
$need_file = true;
$fields = array(
- array("label" => "Image file : ", "type" => "file", "name" => "file"),
- array("label" => "Image title (optionnal) : ", "type" => "text", "name" => "name")
+ array("label" => "File : ", "type" => "file", "name" => "file"),
+ array("label" => "Filename (optionnal) : ", "type" => "text", "name" => "name")
);
$validate = "Upload";