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 --- views/default/likes/forms/link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/default/likes/forms/link.php') diff --git a/views/default/likes/forms/link.php b/views/default/likes/forms/link.php index 34c2848d3..4e52224e2 100644 --- a/views/default/likes/forms/link.php +++ b/views/default/likes/forms/link.php @@ -9,7 +9,7 @@ if (isset($vars['entity']) && isloggedin()) { $guid = $vars['entity']->getGuid(); - $url = elgg_add_action_tokens_to_url($vars['url'] . "action/likes/add?guid={$guid}"); + $url = elgg_add_action_tokens_to_url(elgg_get_site_url() . "action/likes/add?guid={$guid}"); //check to see if the user has already liked if (!elgg_annotation_exists($guid, 'likes') ) { echo " | " . elgg_echo('likes:likethis') . ""; -- cgit v1.2.3