]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #1541: javascript now correctly included in output/url view
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 22 Feb 2010 13:03:35 +0000 (13:03 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 22 Feb 2010 13:03:35 +0000 (13:03 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3964 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/output/url.php

index 7d993c49ef6ce3657d2dae2cfbd7026c9b503ddd..7319f6971d8b975a58573ce49251254670e7118e 100644 (file)
@@ -41,7 +41,7 @@ if (!empty($url)) {
        }
 
        if (array_key_exists('js', $vars) && $vars['js']) {
-               $js = "{$vars['target']}";
+               $js = "{$vars['js']}";
        } else {
                $js = '';
        }
@@ -53,4 +53,4 @@ if (!empty($url)) {
        }
 
        echo "<a href=\"{$url}\" $target $class $js>$text</a>";
-}
\ No newline at end of file
+}