]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Added title to output/url. Fixed typo breaking js support in output/url.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 25 May 2010 21:25:10 +0000 (21:25 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 25 May 2010 21:25:10 +0000 (21:25 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6218 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/output/url.php

index 76bfdc1ef5594b2f40cacf8041f7ceaad2f88c51..10f68d8a8cc112408919a33f8d43e210cf4f32b9 100644 (file)
@@ -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);
        }