From bb1f45eb02bac603d67ac08cb674c4050a245c28 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 30 Oct 2010 22:23:45 +0000 Subject: Refs #2598: Converted most $vars['url'] to elgg_get_site_url() git-svn-id: http://code.elgg.org/elgg/trunk@7149 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/actions/delete.php | 2 +- mod/groups/views/default/forms/forums/addtopic.php | 2 +- mod/groups/views/default/forms/forums/edittopic.php | 2 +- mod/groups/views/default/forms/groups/edit.php | 4 ++-- mod/groups/views/default/forms/groups/invite.php | 2 +- mod/groups/views/default/forum/maintopic.php | 4 ++-- mod/groups/views/default/forum/topics.php | 2 +- mod/groups/views/default/forum/viewposts.php | 2 +- mod/groups/views/default/groups/find.php | 2 +- mod/groups/views/default/groups/forum_latest.php | 6 +++--- mod/groups/views/default/groups/group_sort_menu.php | 2 +- mod/groups/views/default/groups/grouplisting.php | 4 ++-- mod/groups/views/default/groups/groupprofile.php | 8 ++++---- mod/groups/views/default/groups/invitationrequests.php | 4 ++-- mod/groups/views/default/groups/membershiprequests.php | 4 ++-- mod/groups/views/default/groups/side_menu.php | 4 ++-- mod/groups/views/default/icon/group/default/large.php | 2 +- mod/groups/views/default/icon/group/default/medium.php | 2 +- mod/groups/views/default/icon/group/default/small.php | 2 +- mod/groups/views/default/icon/group/default/tiny.php | 2 +- mod/groups/views/default/object/groupforumtopic.php | 8 ++++---- mod/groups/views/default/river/forum/topic/create.php | 2 +- 22 files changed, 36 insertions(+), 36 deletions(-) (limited to 'mod/groups') diff --git a/mod/groups/actions/delete.php b/mod/groups/actions/delete.php index 7d66b2a25..2983bc2ce 100644 --- a/mod/groups/actions/delete.php +++ b/mod/groups/actions/delete.php @@ -15,5 +15,5 @@ register_error(elgg_echo('group:notdeleted')); $url_name = get_loggedin_user()->username; - forward("{$vars['url']}pg/groups/member/{$url_name}"); + forward(elgg_get_site_url()."pg/groups/member/{$url_name}"); ?> \ No newline at end of file diff --git a/mod/groups/views/default/forms/forums/addtopic.php b/mod/groups/views/default/forms/forums/addtopic.php index 3fedbd0dc..72e66480b 100644 --- a/mod/groups/views/default/forms/forums/addtopic.php +++ b/mod/groups/views/default/forms/forums/addtopic.php @@ -35,7 +35,7 @@ ?> -
+

diff --git a/mod/groups/views/default/forms/forums/edittopic.php b/mod/groups/views/default/forms/forums/edittopic.php index 5470299db..1426385ed 100644 --- a/mod/groups/views/default/forms/forums/edittopic.php +++ b/mod/groups/views/default/forms/forums/edittopic.php @@ -26,7 +26,7 @@ ?> - +

diff --git a/mod/groups/views/default/forms/groups/edit.php b/mod/groups/views/default/forms/groups/edit.php index 5bfc0d4fb..a78e0b982 100644 --- a/mod/groups/views/default/forms/groups/edit.php +++ b/mod/groups/views/default/forms/groups/edit.php @@ -13,7 +13,7 @@ } ?> - + @@ -150,7 +150,7 @@ if (is_array($vars['config']->group) && sizeof($vars['config']->group) > 0) if ($vars['entity']) { ?>

- "> + "> - + owner_guid)) { echo ""; } diff --git a/mod/groups/views/default/forum/topics.php b/mod/groups/views/default/forum/topics.php index 5c1f5a099..ea6431037 100644 --- a/mod/groups/views/default/forum/topics.php +++ b/mod/groups/views/default/forum/topics.php @@ -12,7 +12,7 @@ if(elgg_get_page_owner()->isMember(get_loggedin_user())) { ?>
- +
countAnnotations('group_topic_post'); $offset = (int) get_input('offset',0); -$baseurl = $vars['url'] . "mod/groups/topicposts.php?topic={$vars['entity']->guid}&group_guid={$vars['entity']->container_guid}"; +$baseurl = elgg_get_site_url() . "mod/groups/topicposts.php?topic={$vars['entity']->guid}&group_guid={$vars['entity']->container_guid}"; echo elgg_view('navigation/pagination',array( 'limit' => 50, 'offset' => $offset, diff --git a/mod/groups/views/default/groups/find.php b/mod/groups/views/default/groups/find.php index 534469052..659d7c5ea 100644 --- a/mod/groups/views/default/groups/find.php +++ b/mod/groups/views/default/groups/find.php @@ -8,7 +8,7 @@ $tag_string = elgg_echo('groups:search:tags'); ?>

- + \ No newline at end of file diff --git a/mod/groups/views/default/groups/forum_latest.php b/mod/groups/views/default/groups/forum_latest.php index b84a224ab..ed4e41c0d 100644 --- a/mod/groups/views/default/groups/forum_latest.php +++ b/mod/groups/views/default/groups/forum_latest.php @@ -5,7 +5,7 @@ //check to make sure this group forum has been activated if($vars['entity']->forum_enable != 'no'){ ?> -"> +">

forum_enable != 'no'){ echo "
"; echo "
" . elgg_view('profile/icon',array('entity' => $f->getOwnerEntity(), 'size' => 'tiny')) . "
"; - echo "

guid}&group_guid={$vars['entity']->guid}\">" . $f->title . "

"; + echo "

guid}&group_guid={$vars['entity']->guid}\">" . $f->title . "

"; echo "

".elgg_echo('comments').": " . $count_annotations . "

"; echo "
"; } } else { if(elgg_get_page_owner()->isMember(get_loggedin_user())){ - $create_discussion = $vars['url'] . "mod/groups/addtopic.php?group_guid=" . elgg_get_page_owner_guid(); + $create_discussion = elgg_get_site_url() . "mod/groups/addtopic.php?group_guid=" . elgg_get_page_owner_guid(); echo "

".elgg_echo("groups:addtopic")."

"; }else{ echo "

". elgg_echo("grouptopic:notcreated") . "

"; diff --git a/mod/groups/views/default/groups/group_sort_menu.php b/mod/groups/views/default/groups/group_sort_menu.php index 63af0dc07..aedb3f8e5 100644 --- a/mod/groups/views/default/groups/group_sort_menu.php +++ b/mod/groups/views/default/groups/group_sort_menu.php @@ -11,7 +11,7 @@ $filter = $vars['filter']; //url - $url = $vars['url'] . "pg/groups/world/"; + $url = elgg_get_site_url() . "pg/groups/world/"; ?>
diff --git a/mod/groups/views/default/groups/grouplisting.php b/mod/groups/views/default/groups/grouplisting.php index 3e30259eb..1466234ab 100644 --- a/mod/groups/views/default/groups/grouplisting.php +++ b/mod/groups/views/default/groups/grouplisting.php @@ -26,10 +26,10 @@ $info .= "

" . $mem . " / " . get_group_membe //for admins only - display the feature or unfeature option if(isadminloggedin()) { if($vars['entity']->featured_group == "yes"){ - $url = elgg_add_action_tokens_to_url($vars['url'] . "action/groups/featured?group_guid=" . $vars['entity']->guid . "&action_type=unfeature"); + $url = elgg_add_action_tokens_to_url(elgg_get_site_url() . "action/groups/featured?group_guid=" . $vars['entity']->guid . "&action_type=unfeature"); $wording = elgg_echo("groups:makeunfeatured"); }else{ - $url = elgg_add_action_tokens_to_url($vars['url'] . "action/groups/featured?group_guid=" . $vars['entity']->guid . "&action_type=feature"); + $url = elgg_add_action_tokens_to_url(elgg_get_site_url() . "action/groups/featured?group_guid=" . $vars['entity']->guid . "&action_type=feature"); $wording = elgg_echo("groups:makefeatured"); } // display 'make featured' option diff --git a/mod/groups/views/default/groups/groupprofile.php b/mod/groups/views/default/groups/groupprofile.php index 19f09fb2e..9d8aae8fc 100644 --- a/mod/groups/views/default/groups/groupprofile.php +++ b/mod/groups/views/default/groups/groupprofile.php @@ -7,14 +7,14 @@ $user = get_loggedin_user(); -elgg_push_breadcrumb(elgg_echo('groups:all'), "{$vars['url']}pg/groups/world"); +elgg_push_breadcrumb(elgg_echo('groups:all'), elgg_get_site_url()."pg/groups/world"); // create user actions $actions = array(); if ($vars['entity']->canEdit()) { // breadcrumb trail - elgg_push_breadcrumb(elgg_echo('groups:yours'), "{$vars['url']}pg/groups/member/{$user->username}"); + elgg_push_breadcrumb(elgg_echo('groups:yours'), elgg_get_site_url()."pg/groups/member/{$user->username}"); // edit and invite $actions["mod/groups/edit.php?group_guid={$vars['entity']->getGUID()}"] = elgg_echo('groups:edit'); @@ -23,7 +23,7 @@ if ($vars['entity']->canEdit()) { if ($vars['entity']->isMember($user)) { // breadcrumb trail - elgg_push_breadcrumb(elgg_echo('groups:yours'), "{$vars['url']}pg/groups/member/{$user->username}"); + elgg_push_breadcrumb(elgg_echo('groups:yours'), elgg_get_site_url()."pg/groups/member/{$user->username}"); // leave $url = elgg_add_action_tokens_to_url("action/groups/leave?group_guid={$vars['entity']->getGUID()}"); @@ -50,7 +50,7 @@ $action_buttons = ''; if (!empty($actions)) { $action_buttons = '

'; foreach ($actions as $url => $action) { - $action_buttons .= "$action"; + $action_buttons .= "$action"; } $action_buttons .= '
'; } diff --git a/mod/groups/views/default/groups/invitationrequests.php b/mod/groups/views/default/groups/invitationrequests.php index c90a29128..297dc31d4 100644 --- a/mod/groups/views/default/groups/invitationrequests.php +++ b/mod/groups/views/default/groups/invitationrequests.php @@ -15,13 +15,13 @@ if (!empty($vars['invitations']) && is_array($vars['invitations'])) { 'override' => 'true' ))."
"; - $url = elgg_add_action_tokens_to_url("{$vars['url']}action/groups/join?user_guid={$user->guid}&group_guid={$group->guid}"); + $url = elgg_add_action_tokens_to_url(elgg_get_site_url()."action/groups/join?user_guid={$user->guid}&group_guid={$group->guid}"); ?>
$vars['url'] . "action/groups/killinvitation?user_guid={$user->getGUID()}&group_guid={$group->getGUID()}", + 'href' => elgg_get_site_url() . "action/groups/killinvitation?user_guid={$user->getGUID()}&group_guid={$group->getGUID()}", 'confirm' => elgg_echo('groups:invite:remove:check'), 'text' => elgg_echo('delete'), ))); diff --git a/mod/groups/views/default/groups/membershiprequests.php b/mod/groups/views/default/groups/membershiprequests.php index b08e521cf..6dde33bd4 100644 --- a/mod/groups/views/default/groups/membershiprequests.php +++ b/mod/groups/views/default/groups/membershiprequests.php @@ -16,13 +16,13 @@ )); echo "
"; - $url = elgg_add_action_tokens_to_url("{$vars['url']}action/groups/addtogroup?user_guid={$request->guid}&group_guid={$vars['entity']->guid}"); + $url = elgg_add_action_tokens_to_url(elgg_get_site_url()."action/groups/addtogroup?user_guid={$request->guid}&group_guid={$vars['entity']->guid}"); ?>
$vars['url'] . 'action/groups/killrequest?user_guid='.$request->guid.'&group_guid=' . $vars['entity']->guid, + 'href' => elgg_get_site_url() . 'action/groups/killrequest?user_guid='.$request->guid.'&group_guid=' . $vars['entity']->guid, 'confirm' => elgg_echo('groups:joinrequest:remove:check'), 'text' => elgg_echo('delete'), ))); diff --git a/mod/groups/views/default/groups/side_menu.php b/mod/groups/views/default/groups/side_menu.php index 3048ea431..99eb13a11 100644 --- a/mod/groups/views/default/groups/side_menu.php +++ b/mod/groups/views/default/groups/side_menu.php @@ -1,8 +1,8 @@ \ No newline at end of file diff --git a/mod/groups/views/default/icon/group/default/large.php b/mod/groups/views/default/icon/group/default/large.php index a9d69a691..e5e30ac3e 100644 --- a/mod/groups/views/default/icon/group/default/large.php +++ b/mod/groups/views/default/icon/group/default/large.php @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/mod/groups/views/default/icon/group/default/medium.php b/mod/groups/views/default/icon/group/default/medium.php index 47cf328b8..f7bd9376d 100644 --- a/mod/groups/views/default/icon/group/default/medium.php +++ b/mod/groups/views/default/icon/group/default/medium.php @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/mod/groups/views/default/icon/group/default/small.php b/mod/groups/views/default/icon/group/default/small.php index b052c1cc3..2a0ef7d93 100644 --- a/mod/groups/views/default/icon/group/default/small.php +++ b/mod/groups/views/default/icon/group/default/small.php @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/mod/groups/views/default/icon/group/default/tiny.php b/mod/groups/views/default/icon/group/default/tiny.php index 1023d06e2..2920da6b6 100644 --- a/mod/groups/views/default/icon/group/default/tiny.php +++ b/mod/groups/views/default/icon/group/default/tiny.php @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/mod/groups/views/default/object/groupforumtopic.php b/mod/groups/views/default/object/groupforumtopic.php index 2fdf24723..9729c9d83 100644 --- a/mod/groups/views/default/object/groupforumtopic.php +++ b/mod/groups/views/default/object/groupforumtopic.php @@ -36,7 +36,7 @@ if (get_context() == "search") { //get the group avatar $icon = elgg_view("profile/icon",array('entity' => $u, 'size' => 'tiny')); //get the group and topic title - $info .= "

" . elgg_echo('groups:topic') . ": guid}&group_guid={$group->guid}\">{$title}

"; + $info .= "

" . elgg_echo('groups:topic') . ": guid}&group_guid={$group->guid}\">{$title}

"; if ($group instanceof ElggGroup) { $info .= "

" . elgg_echo('group') . ": getURL()}\">".htmlentities($group->name, ENT_QUOTES, 'UTF-8') ."

"; } @@ -47,20 +47,20 @@ if (get_context() == "search") { }else{ $info = "

" . sprintf(elgg_echo('groups:forum:created'), $forum_created, $counter) . "

"; } - $info .= "

" . elgg_echo('groups:started') . " " . $topic_owner->name . ": guid}&group_guid={$group->guid}\">{$title}

"; + $info .= "

" . elgg_echo('groups:started') . " " . $topic_owner->name . ": guid}&group_guid={$group->guid}\">{$title}

"; if (groups_can_edit_discussion($vars['entity'], elgg_get_page_owner()->owner_guid)) { // display the delete link to those allowed to delete $info .= "