aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-02 21:31:56 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-02 21:31:56 +0000
commit9dc88628c96d2c959b30a55d19fc39a31b434589 (patch)
tree16e5e204e97a398cba07a29f03282cd984958989 /views
parent817bd3abfdeb5f0da9a6e179de6f6ca607709792 (diff)
downloadelgg-9dc88628c96d2c959b30a55d19fc39a31b434589.tar.gz
elgg-9dc88628c96d2c959b30a55d19fc39a31b434589.tar.bz2
Refs #2463: page_elements/content_header normalizes 'new_link'
git-svn-id: http://code.elgg.org/elgg/trunk@7202 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/default/page_elements/content_header.php2
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>";