diff options
Diffstat (limited to 'mod/blog')
-rw-r--r-- | mod/blog/start.php | 2 | ||||
-rw-r--r-- | mod/blog/views/default/blog/sidebar_menu.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/blog/start.php b/mod/blog/start.php index 4c0fa66a5..a87a14ca2 100644 --- a/mod/blog/start.php +++ b/mod/blog/start.php @@ -23,7 +23,7 @@ function blog_init() { global $CONFIG; require_once dirname(__FILE__) . '/blog_lib.php'; - add_menu(elgg_echo('blog:blogs'), "{$CONFIG->wwwroot}pg/blog/", array()); + add_menu(elgg_echo('blog:blogs'), elgg_get_site_url()."pg/blog/", array()); // run the setup upon activations or to upgrade old installations. run_function_once('blog_runonce', '1269370108'); diff --git a/mod/blog/views/default/blog/sidebar_menu.php b/mod/blog/views/default/blog/sidebar_menu.php index ab00433c8..f69e23e29 100644 --- a/mod/blog/views/default/blog/sidebar_menu.php +++ b/mod/blog/views/default/blog/sidebar_menu.php @@ -49,7 +49,7 @@ if ($page_owner) { $page_owner = elgg_get_page_owner(); } - $link = $CONFIG->wwwroot . 'pg/blog/' . $page_owner->username . '/archive/' . $timestamplow . '/' . $timestamphigh; + $link = elgg_get_site_url() . 'pg/blog/' . $page_owner->username . '/archive/' . $timestamplow . '/' . $timestamphigh; $month = sprintf(elgg_echo('date:month:' . substr($date,4,2)), substr($date, 0, 4)); echo "<li><a href=\"$link\" title=\"$month\">$month</a></li>"; } |