aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/file.php')
-rw-r--r--views/default/input/file.php20
1 files changed, 18 insertions, 2 deletions
diff --git a/views/default/input/file.php b/views/default/input/file.php
index 339cd0ed2..103159566 100644
--- a/views/default/input/file.php
+++ b/views/default/input/file.php
@@ -1,8 +1,24 @@
<?php
+ /**
+ * Elgg file input
+ * Displays a file input field
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ * @uses $vars['js'] Any Javascript to enter into the input tag
+ * @uses $vars['internalname'] The name of the input field
+ *
+ */
+
if (!empty($vars['value'])) {
- echo "A file has already been uploaded. To replace it, select it below:<br />";
+ echo elgg_echo('fileexists') . "<br />";
}
?>
-<input type="file" size="30" name="<?php echo $vars['internalname']; ?>" /> \ No newline at end of file
+<input type="file" size="30" <?php echo $vars['js']; ?>name="<?php echo $vars['internalname']; ?>" /> \ No newline at end of file