From 1d3d21b69eafb45c97e283ead86f63e7bf1731dc Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 2 Nov 2010 21:36:21 +0000 Subject: Refs #2463: Removed gratuitous references to $CONFIG->url, etc. in blog - groups plugins git-svn-id: http://code.elgg.org/elgg/trunk@7204 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/start.php | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'mod/groups/start.php') diff --git a/mod/groups/start.php b/mod/groups/start.php index 1d00782c4..f24a3106a 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -335,19 +335,13 @@ * @return string File URL */ function groups_url($entity) { - - global $CONFIG; - $title = elgg_get_friendly_title($entity->name); - return $CONFIG->url . "pg/groups/{$entity->guid}/$title/"; + return "pg/groups/{$entity->guid}/$title/"; } function groups_groupforumtopic_url($entity) { - - global $CONFIG; - return $CONFIG->url . 'mod/groups/topicposts.php?topic='. $entity->guid .'&group_guid=' . $entity->container_guid; - + return 'mod/groups/topicposts.php?topic='. $entity->guid .'&group_guid=' . $entity->container_guid; } /** @@ -502,7 +496,7 @@ $filehandler->setFilename("groups/" . $entity->guid . $size . ".jpg"); if ($filehandler->exists()) { - $url = $CONFIG->url . "pg/groupicon/{$entity->guid}/$size/$icontime.jpg"; + $url = elgg_get_site_url() . "pg/groupicon/{$entity->guid}/$size/$icontime.jpg"; return $url; } @@ -536,7 +530,7 @@ function group_topicpost_url($annotation) { if ($parent = get_entity($annotation->entity_guid)) { global $CONFIG; - return elgg_get_site_url() . 'mod/groups/topicposts.php?topic='.$parent->guid.'&group_guid='.$parent->container_guid.'#' . $annotation->id; + return 'mod/groups/topicposts.php?topic='.$parent->guid.'&group_guid='.$parent->container_guid.'#' . $annotation->id; } } @@ -581,7 +575,7 @@ if ($params['owner'] instanceof ElggGroup && $group_owner->forum_enable != 'no') { $return_value[] = array( 'text' => elgg_echo('groups:forum'), - 'href' => "{$CONFIG->url}pg/groups/forum/{$params['owner']->getGUID()}" + 'href' => "pg/groups/forum/{$params['owner']->getGUID()}" ); } return $return_value; @@ -593,7 +587,7 @@ if ($params['owner'] instanceof ElggGroup) { $return_value[] = array( 'text' => elgg_echo('Activity'), - 'href' => "{$CONFIG->url}pg/groups/activity/{$params['owner']->getGUID()}" + 'href' => "pg/groups/activity/{$params['owner']->getGUID()}" ); } return $return_value; -- cgit v1.2.3