aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/url.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/output/url.php')
-rw-r--r--views/default/output/url.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/views/default/output/url.php b/views/default/output/url.php
index 7319f6971..b77ffbf00 100644
--- a/views/default/output/url.php
+++ b/views/default/output/url.php
@@ -17,15 +17,11 @@
*
*/
-if (isset($vars['value'])) {
- $vars['href'] = $vars['value'];
-}
-
$url = trim($vars['href']);
if (!empty($url)) {
if (array_key_exists('is_action', $vars) && $vars['is_action']) {
- $url = elgg_add_action_tokens_to_url($url);
+ $url = elgg_validate_action_url($url);
}
if (array_key_exists('target', $vars) && $vars['target']) {
@@ -41,7 +37,7 @@ if (!empty($url)) {
}
if (array_key_exists('js', $vars) && $vars['js']) {
- $js = "{$vars['js']}";
+ $js = "{$vars['target']}";
} else {
$js = '';
}
@@ -53,4 +49,4 @@ if (!empty($url)) {
}
echo "<a href=\"{$url}\" $target $class $js>$text</a>";
-}
+} \ No newline at end of file