aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/blog/blog_lib.php4
-rw-r--r--mod/blog/start.php4
-rw-r--r--mod/sitepages/start.php2
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;
}