aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/url.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-25 21:25:10 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-25 21:25:10 +0000
commit756dff5e2a7c94a7821012869225efb2c0eb32e7 (patch)
treef63850780b3d28c1af8c2b111507763ee7c4cf7d /views/default/output/url.php
parent0edcb63c5ca1504b290839143db08b49439bb923 (diff)
downloadelgg-756dff5e2a7c94a7821012869225efb2c0eb32e7.tar.gz
elgg-756dff5e2a7c94a7821012869225efb2c0eb32e7.tar.bz2
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
Diffstat (limited to 'views/default/output/url.php')
-rw-r--r--views/default/output/url.php12
1 files changed, 6 insertions, 6 deletions
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);
}