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 --- mod/search/index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mod/search') diff --git a/mod/search/index.php b/mod/search/index.php index 88e313841..705f6e0a8 100644 --- a/mod/search/index.php +++ b/mod/search/index.php @@ -76,7 +76,7 @@ $data = htmlspecialchars(http_build_query(array( 'search_type' => 'all', //'friends' => $friends ))); -$url = "{$CONFIG->wwwroot}pg/search/?$data"; +$url = elgg_get_site_url()."pg/search/?$data"; add_submenu_item(elgg_echo('all'), $url); foreach ($types as $type => $subtypes) { @@ -94,7 +94,7 @@ foreach ($types as $type => $subtypes) { 'friends' => $friends ))); - $url = "{$CONFIG->wwwroot}pg/search/?$data"; + $url = elgg_get_site_url()."pg/search/?$data"; add_submenu_item(elgg_echo($label), $url); } @@ -109,7 +109,7 @@ foreach ($types as $type => $subtypes) { 'friends' => $friends ))); - $url = "{$CONFIG->wwwroot}pg/search/?$data"; + $url = elgg_get_site_url()."pg/search/?$data"; add_submenu_item(elgg_echo($label), $url); } @@ -128,7 +128,7 @@ foreach ($custom_types as $type) { 'friends' => $friends ))); - $url = "{$CONFIG->wwwroot}pg/search/?$data"; + $url = elgg_get_site_url()."pg/search/?$data"; add_submenu_item(elgg_echo($label), $url); } -- cgit v1.2.3