diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-24 22:50:57 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-24 22:50:57 +0000 |
commit | 98229e3edb481a469f375376b694be43bc2a1b0d (patch) | |
tree | 5f3769fc7001be9f1ddd7c95d938d1df44cbcc21 | |
parent | eef797bcbc60823023fb8e1b35ddff1523d86dce (diff) | |
download | elgg-98229e3edb481a469f375376b694be43bc2a1b0d.tar.gz elgg-98229e3edb481a469f375376b694be43bc2a1b0d.tar.bz2 |
Removing superfluous calls to insert site root in urls
git-svn-id: http://code.elgg.org/elgg/trunk@7438 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/blog/blog_lib.php | 4 | ||||
-rw-r--r-- | mod/blog/start.php | 4 | ||||
-rw-r--r-- | mod/sitepages/start.php | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/mod/blog/blog_lib.php b/mod/blog/blog_lib.php index 52d629a99..593495a0e 100644 --- a/mod/blog/blog_lib.php +++ b/mod/blog/blog_lib.php @@ -32,7 +32,7 @@ function blog_get_page_content_read($owner_guid = NULL, $guid = NULL) { $content = elgg_view('page_elements/content_header', array( 'context' => $owner_guid ? 'mine' : 'everyone', 'type' => 'blog', - 'all_link' => "{$CONFIG->site->url}pg/blog" + 'all_link' => "pg/blog" )); $options = array( @@ -202,7 +202,7 @@ function blog_get_page_content_friends($user_guid) { $content = elgg_view('page_elements/content_header', array( 'context' => 'friends', 'type' => 'blog', - 'all_link' => "{$CONFIG->site->url}pg/blog" + 'all_link' => "pg/blog" )); if (!$friends = get_user_friends($user_guid, ELGG_ENTITIES_ANY_VALUE, 0)) { diff --git a/mod/blog/start.php b/mod/blog/start.php index 091099e2f..08b7541b3 100644 --- a/mod/blog/start.php +++ b/mod/blog/start.php @@ -97,7 +97,7 @@ function blog_page_handler($page) { $username = $page[0]; // push breadcrumb - elgg_push_breadcrumb(elgg_echo('blog:blogs'), "{$CONFIG->site->url}pg/blog"); + elgg_push_breadcrumb(elgg_echo('blog:blogs'), "pg/blog"); // forward away if invalid user. if (!$user = get_user_by_username($username)) { @@ -107,7 +107,7 @@ function blog_page_handler($page) { set_page_owner($user->getGUID()); $crumbs_title = elgg_echo('blog:owned_blogs', array($user->name)); - $crumbs_url = "{$CONFIG->site->url}pg/blog/$username/read"; + $crumbs_url = "pg/blog/$username/read"; elgg_push_breadcrumb($crumbs_title, $crumbs_url); $action = isset($page[1]) ? $page[1] : FALSE; diff --git a/mod/sitepages/start.php b/mod/sitepages/start.php index 5aa4a2117..37fec2085 100644 --- a/mod/sitepages/start.php +++ b/mod/sitepages/start.php @@ -132,7 +132,7 @@ function sitepages_page_handler($page) { break; default: - forward("{$CONFIG->site->url}pg/sitepages/read/$default_page"); + forward("pg/sitepages/read/$default_page"); break; } |