From 9255088a79a034c3cdf4eb46124504b9dd0c838e Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 30 Oct 2010 22:15:36 +0000 Subject: Refs #2598: Converted virtually all uses of $CONFIG->wwwroot to elgg_get_site_url() git-svn-id: http://code.elgg.org/elgg/trunk@7146 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/page_elements/content_header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views/default/page_elements') diff --git a/views/default/page_elements/content_header.php b/views/default/page_elements/content_header.php index 91e73f4af..6ae5849ae 100644 --- a/views/default/page_elements/content_header.php +++ b/views/default/page_elements/content_header.php @@ -69,10 +69,10 @@ if (isloggedin()) { } else { // @todo remove the hard coded reference to the videolist plugin if (get_context() == "videolist"){ - $video_link = $CONFIG->wwwroot . "pg/videolist/browse/$username/"; + $video_link = elgg_get_site_url() . "pg/videolist/browse/$username/"; $new_button = "" . elgg_echo('videolist:browsemenu') . ''; } else { - $new_link = (isset($vars['new_link'])) ? $vars['new_link'] : "{$CONFIG->wwwroot}pg/$type/$username/new"; + $new_link = (isset($vars['new_link'])) ? $vars['new_link'] : elgg_get_site_url()."pg/$type/$username/new"; $new_button = "" . elgg_echo($type . ':new') . ''; } $new_button = "
$new_button
"; -- cgit v1.2.3