aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/url.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/url.php')
-rw-r--r--views/default/input/url.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/views/default/input/url.php b/views/default/input/url.php
index 571754c77..0b9e124c6 100644
--- a/views/default/input/url.php
+++ b/views/default/input/url.php
@@ -18,6 +18,11 @@ $class = $vars['class'];
if (!$class) {
$class = "input_url";
}
+
+if (!isset($vars['value']) || $vars['value'] === FALSE) {
+ $vars['value'] = elgg_get_sticky_value($vars['internalname']);
+}
+
?>
<input type="text" <?php if ($vars['disabled']) echo ' disabled="yes" '; ?> <?php echo $vars['js']; ?> name="<?php echo $vars['internalname']; ?>" <?php if (isset($vars['internalid'])) echo "id=\"{$vars['internalid']}\""; ?> value="<?php echo htmlentities($vars['value'], ENT_QUOTES, 'UTF-8'); ?>" class="<?php echo $class; ?>"/> \ No newline at end of file