aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/plaintext.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/plaintext.php')
-rw-r--r--views/default/input/plaintext.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/views/default/input/plaintext.php b/views/default/input/plaintext.php
index 22171a7a7..dd1178945 100644
--- a/views/default/input/plaintext.php
+++ b/views/default/input/plaintext.php
@@ -19,6 +19,10 @@ if (!$class) {
$class = "input_textarea";
}
+if (!isset($vars['value']) || $vars['value'] === FALSE) {
+ $vars['value'] = elgg_get_sticky_value($vars['internalname']);
+}
+
?>
<textarea class="<?php echo $class; ?>" name="<?php echo $vars['internalname']; ?>" <?php if (isset($vars['internalid'])) echo "id=\"{$vars['internalid']}\""; ?> <?php if ($vars['disabled']) echo ' disabled="yes" '; ?> <?php echo $vars['js']; ?>><?php echo htmlentities($vars['value'], ENT_QUOTES, 'UTF-8'); ?></textarea> \ No newline at end of file