diff options
Diffstat (limited to 'views/default/output')
-rw-r--r-- | views/default/output/tagcloud.php | 4 | ||||
-rw-r--r-- | views/default/output/tags.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/views/default/output/tagcloud.php b/views/default/output/tagcloud.php index a4ecb72da..7270cd5ea 100644 --- a/views/default/output/tagcloud.php +++ b/views/default/output/tagcloud.php @@ -57,7 +57,7 @@ if (!empty($vars['tagcloud']) && is_array($vars['tagcloud'])) { if ($size < 100) { $size = 100; } - $url = "{$vars['url']}pg/search/?q=". urlencode($tag->tag) . "&search_type=tags$type$subtype"; + $url = elgg_get_site_url()."pg/search/?q=". urlencode($tag->tag) . "&search_type=tags$type$subtype"; $list .= "<a href=\"$url\" style=\"font-size: $size%\" title=\"".addslashes($tag->tag)." ($tag->total)\" style=\"text-decoration:none;\">" . htmlentities($tag->tag, ENT_QUOTES, 'UTF-8') . "</a>"; } @@ -65,7 +65,7 @@ if (!empty($vars['tagcloud']) && is_array($vars['tagcloud'])) { if ($context != 'tags') { $cloud .= '<p class="tags">'; - $cloud .= "<a href=\"{$vars['url']}pg/tags\">All site tags</a>"; + $cloud .= "<a href=\"".elgg_get_site_url()."pg/tags\">All site tags</a>"; $cloud .= '</p>'; } diff --git a/views/default/output/tags.php b/views/default/output/tags.php index 99c898de6..6c8115d54 100644 --- a/views/default/output/tags.php +++ b/views/default/output/tags.php @@ -43,7 +43,7 @@ if (!empty($vars['tags'])) { $type = ""; } if (is_string($tag)) { - $tagstr .= "<a rel=\"tag\" href=\"{$vars['url']}pg/search/?q=".urlencode($tag) . "&search_type=tags{$type}{$subtype}{$object}\">" . htmlentities($tag, ENT_QUOTES, 'UTF-8') . "</a>"; + $tagstr .= "<a rel=\"tag\" href=\"".elgg_get_site_url()."pg/search/?q=".urlencode($tag) . "&search_type=tags{$type}{$subtype}{$object}\">" . htmlentities($tag, ENT_QUOTES, 'UTF-8') . "</a>"; } } echo $tagstr; |