diff options
Diffstat (limited to 'views/default/output/url.php')
-rw-r--r-- | views/default/output/url.php | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/views/default/output/url.php b/views/default/output/url.php index 87f551ed1..7f72f0dce 100644 --- a/views/default/output/url.php +++ b/views/default/output/url.php @@ -1,24 +1,24 @@ -<?php
-
- /**
- * Elgg URL display
- * Displays a URL as a link
- *
- * @package Elgg
- * @subpackage Core
+<?php - * @author Curverider Ltd
+ /** + * Elgg URL display + * Displays a URL as a link + * + * @package Elgg + * @subpackage Core - * @link http://elgg.org/
- *
- * @uses $vars['value'] The URL to display
- *
- */
-
- $val = trim($vars['value']);
- if (!empty($val)) {
- if ((substr_count($val, "http://") == 0) && (substr_count($val, "https://") == 0)) {
- $val = "http://" . $val;
+ * @author Curverider Ltd + + * @link http://elgg.org/ + * + * @uses $vars['value'] The URL to display + * + */ + + $val = trim($vars['value']); + if (!empty($val)) { + if ((substr_count($val, "http://") == 0) && (substr_count($val, "https://") == 0)) { + $val = "http://" . $val; } if ($vars['is_action']) @@ -30,8 +30,8 @@ if (strpos($val, '?')>0) $sep = "&"; $val = "$val{$sep}__elgg_token=$token&__elgg_ts=$ts"; } -
- echo "<a href=\"{$val}\" target=\"_blank\">". htmlentities($val, ENT_QUOTES, 'UTF-8'). "</a>";
- }
-
+ + echo "<a href=\"{$val}\" target=\"_blank\">". htmlentities($val, ENT_QUOTES, 'UTF-8'). "</a>"; + } + ?>
\ No newline at end of file |