summaryrefslogtreecommitdiff
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
parent80e0f88b56ca7e306d415604c608d8bc09496e21 (diff)
downloadBits-822a630601960797266f0bae6aea3fdc3a141d5c.tar.gz
Bits-822a630601960797266f0bae6aea3fdc3a141d5c.zip
Minor changes.
-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";