* @subpackage Core
*
* @uses string $vars['text'] The string between the <a></a> tags.
+ * @uses string $vars['href'] The unencoded url string
* @uses bool $vars['encode_text'] Run $vars['text'] through htmlspecialchars()?
* @uses bool $vars['is_action'] Is this a link to an action?
*
unset($vars['value']);
}
-if (!empty($url)) {\r
+if (!empty($url)) {
if (isset($vars['text'])) {
if (isset($vars['encode_text']) && $vars['encode_text']) {
$text = htmlspecialchars($vars['text'], ENT_QUOTES, 'UTF-8');
$url = elgg_normalize_url($url);
if (isset($vars['is_action'])) {
- $url = elgg_add_action_tokens_to_url($url);
+ $url = elgg_add_action_tokens_to_url($url, FALSE);
unset($vars['is_action']);
}
$vars['href'] = $url;
-\r
+
$attributes = elgg_format_attributes($vars);
- echo "<a $attributes>$text</a>";\r
+ echo "<a $attributes>$text</a>";
}
\ No newline at end of file