aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-06-19 20:18:03 -0400
committercash <cash.costello@gmail.com>2011-06-19 20:18:03 -0400
commit79075fb578b1ba9834594c867530be43bc886101 (patch)
tree1e387b6ef1fd51063003f1b73d253745da1b16bc
parent48f628e2901b4ddda87399aada6d7272ee6172dc (diff)
downloadelgg-79075fb578b1ba9834594c867530be43bc886101.tar.gz
elgg-79075fb578b1ba9834594c867530be43bc886101.tar.bz2
we "upload" new files and "save" old ones
-rw-r--r--mod/file/views/default/forms/file/upload.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/file/views/default/forms/file/upload.php b/mod/file/views/default/forms/file/upload.php
index 001e66674..b8a7a1668 100644
--- a/mod/file/views/default/forms/file/upload.php
+++ b/mod/file/views/default/forms/file/upload.php
@@ -16,8 +16,10 @@ $ajax = elgg_extract('ajax', $vars, FALSE);
if ($guid) {
$file_label = elgg_echo("file:replace");
+ $submit_label = elgg_echo('save');
} else {
$file_label = elgg_echo("file:file");
+ $submit_label = elgg_echo('upload');
}
?>
@@ -63,7 +65,7 @@ if ($guid) {
echo elgg_view('input/hidden', array('name' => 'file_guid', 'value' => $guid));
}
-echo elgg_view('input/submit', array('value' => elgg_echo("save")));
+echo elgg_view('input/submit', array('value' => $submit_label));
?>
</div>