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/bookmarks/start.php | 12 ++++++------ mod/bookmarks/views/default/object/bookmarks.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'mod/bookmarks') diff --git a/mod/bookmarks/start.php b/mod/bookmarks/start.php index d8bae2350..e65f7d179 100644 --- a/mod/bookmarks/start.php +++ b/mod/bookmarks/start.php @@ -225,16 +225,16 @@ function bookmarks_page_handler($page) { $header .= elgg_view("page_elements/content_header", array( 'context' => $context, 'type' => 'bookmarks', - 'all_link' => "{$CONFIG->url}pg/bookmarks/", - 'new_link' => "{$CONFIG->url}pg/bookmarks/{$owner_name}/add" + 'all_link' => "pg/bookmarks/", + 'new_link' => "pg/bookmarks/{$owner_name}/add" )); } }else{ $header .= elgg_view("page_elements/content_header", array( 'context' => $context, 'type' => 'bookmarks', - 'all_link' => "{$CONFIG->url}pg/bookmarks/", - 'new_link' => "{$CONFIG->url}pg/bookmarks/{$owner_name}/add" + 'all_link' => "pg/bookmarks/", + 'new_link' => "pg/bookmarks/{$owner_name}/add" )); } @@ -257,7 +257,7 @@ function bookmark_url($entity) { global $CONFIG; $title = $entity->title; $title = elgg_get_friendly_title($title); - return $CONFIG->url . "pg/bookmarks/" . $entity->getOwnerEntity()->username . "/read/" . $entity->getGUID() . "/" . $title; + return "pg/bookmarks/" . $entity->getOwnerEntity()->username . "/read/" . $entity->getGUID() . "/" . $title; } /** @@ -320,7 +320,7 @@ function bookmarks_profile_menu($hook, $entity_type, $return_value, $params) { $return_value[] = array( 'text' => elgg_echo('bookmarks'), - 'href' => "{$CONFIG->url}pg/bookmarks/{$params['owner']->username}", + 'href' => "pg/bookmarks/{$params['owner']->username}", ); return $return_value; diff --git a/mod/bookmarks/views/default/object/bookmarks.php b/mod/bookmarks/views/default/object/bookmarks.php index db41eee40..aa4874610 100644 --- a/mod/bookmarks/views/default/object/bookmarks.php +++ b/mod/bookmarks/views/default/object/bookmarks.php @@ -56,7 +56,7 @@ if (@file_exists($faviconurl)) { //delete if($vars['entity']->canEdit()){ $delete .= "" . elgg_view('output/confirmlink',array( - 'href' => elgg_get_site_url() . "action/bookmarks/delete?bookmark_guid=" . $vars['entity']->guid, + 'href' => "action/bookmarks/delete?bookmark_guid=" . $vars['entity']->guid, 'text' => elgg_echo("delete"), 'confirm' => elgg_echo("bookmarks:delete:confirm"), )) . ""; -- cgit v1.2.3