From 79075fb578b1ba9834594c867530be43bc886101 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 19 Jun 2011 20:18:03 -0400 Subject: we "upload" new files and "save" old ones --- mod/file/views/default/forms/file/upload.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mod/file/views/default/forms') 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)); ?> -- cgit v1.2.3