From 756dff5e2a7c94a7821012869225efb2c0eb32e7 Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 25 May 2010 21:25:10 +0000 Subject: Added title to output/url. Fixed typo breaking js support in output/url. git-svn-id: http://code.elgg.org/elgg/trunk@6218 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/output/url.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'views') diff --git a/views/default/output/url.php b/views/default/output/url.php index 76bfdc1ef..10f68d8a8 100644 --- a/views/default/output/url.php +++ b/views/default/output/url.php @@ -25,25 +25,25 @@ if (!$url and isset($vars['value'])) { } if (!empty($url)) { - if (array_key_exists('target', $vars) && $vars['target']) { + if (isset($vars['target'])) { $target = "target = \"{$vars['target']}\""; } else { $target = ''; } - if (array_key_exists('class', $vars) && $vars['class']) { + if (isset($vars['class'])) { $class = "class = \"{$vars['class']}\""; } else { $class = ''; } - if (array_key_exists('js', $vars) && $vars['js']) { - $js = "{$vars['target']}"; + if (isset($vars['js'])) { + $js = "{$vars['js']}"; } else { $js = ''; } - if (array_key_exists('text', $vars) && $vars['text']) { + if (isset($vars['text'])) { if (isset($vars['encode_text']) && $vars['encode_text']) { $text = htmlentities($vars['text'], ENT_QUOTES, 'UTF-8'); } else { @@ -57,7 +57,7 @@ if (!empty($url)) { $url = "http://" . $url; } - if (array_key_exists('is_action', $vars) && $vars['is_action']) { + if (isset($vars['is_action'])) { $url = elgg_add_action_tokens_to_url($url); } -- cgit v1.2.3