diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/page_elements/content_header.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/page_elements/content_header.php b/views/default/page_elements/content_header.php index 37cba4425..b1a89fdfc 100644 --- a/views/default/page_elements/content_header.php +++ b/views/default/page_elements/content_header.php @@ -72,7 +72,7 @@ if (isloggedin()) { $video_link = elgg_get_site_url() . "pg/videolist/browse/$username/"; $new_button = "<a href=\"{$video_link}\" class='action_button'>" . elgg_echo('videolist:browsemenu') . '</a>'; } else { - $new_link = (isset($vars['new_link'])) ? $vars['new_link'] : elgg_get_site_url()."pg/$type/$username/new"; + $new_link = elgg_normalize_url((isset($vars['new_link'])) ? $vars['new_link'] : "pg/$type/$username/new"); $new_button = "<a href=\"{$new_link}\" class='action_button'>" . elgg_echo($type . ':new') . '</a>'; } $new_button = "<div class='content_header_options'>$new_button</div>"; |