aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/start.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-02 21:36:21 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-02 21:36:21 +0000
commit1d3d21b69eafb45c97e283ead86f63e7bf1731dc (patch)
treeea53464aa86dd85a3ede83e8192a1bd8e6e0f363 /mod/blog/start.php
parent59bbd848d809da169e0d6baadce4890ac375b90b (diff)
downloadelgg-1d3d21b69eafb45c97e283ead86f63e7bf1731dc.tar.gz
elgg-1d3d21b69eafb45c97e283ead86f63e7bf1731dc.tar.bz2
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
Diffstat (limited to 'mod/blog/start.php')
-rw-r--r--mod/blog/start.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/mod/blog/start.php b/mod/blog/start.php
index a4a4a7c65..c61e818ad 100644
--- a/mod/blog/start.php
+++ b/mod/blog/start.php
@@ -167,8 +167,6 @@ function blog_page_handler($page) {
* @return string URL of blog.
*/
function blog_url_handler($entity) {
- global $CONFIG;
-
if (!$user = get_entity($entity->owner_guid)) {
// default to a standard view if no owner.
return FALSE;
@@ -176,8 +174,7 @@ function blog_url_handler($entity) {
$friendly_title = elgg_get_friendly_title($entity->title);
- $url = "{$CONFIG->site->url}pg/blog/{$user->username}/read/{$entity->getGUID()}/$friendly_title";
- return $url;
+ return "pg/blog/{$user->username}/read/{$entity->guid}/$friendly_title";
}
/**
@@ -200,7 +197,7 @@ function blog_profile_menu($hook, $entity_type, $return_value, $params) {
if (!($params['owner'] instanceof ElggGroup)) {
$return_value[] = array(
'text' => elgg_echo('blog'),
- 'href' => "{$CONFIG->url}pg/blog/{$params['owner']->username}/read",
+ 'href' => "pg/blog/{$params['owner']->username}/read",
);
}