From bb1f45eb02bac603d67ac08cb674c4050a245c28 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 30 Oct 2010 22:23:45 +0000 Subject: Refs #2598: Converted most $vars['url'] to elgg_get_site_url() git-svn-id: http://code.elgg.org/elgg/trunk@7149 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/object/blog.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mod/blog/views/default/object') diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php index bf85ea407..fc88eea25 100644 --- a/mod/blog/views/default/object/blog.php +++ b/mod/blog/views/default/object/blog.php @@ -20,7 +20,7 @@ $excerpt = $blog->excerpt; $body = autop($blog->description); $owner_icon = elgg_view('profile/icon', array('entity' => $owner, 'size' => 'tiny')); -$owner_blog_link = "username\">{$owner->name}"; +$owner_blog_link = "username\">{$owner->name}"; $author_text = sprintf(elgg_echo('blog:author_by_line'), $owner_blog_link); if($blog->tags){ $tags = "

" . elgg_view('output/tags', array('tags' => $blog->tags)) . "

"; @@ -48,10 +48,10 @@ if ($blog->comments_on != 'Off') { $edit = elgg_view('output/access', array('entity' => $vars['entity'])); if ($blog->canEdit()) { - $edit_url = "{$vars['url']}pg/blog/{$owner->username}/edit/{$blog->getGUID()}/"; + $edit_url = elgg_get_site_url()."pg/blog/{$owner->username}/edit/{$blog->getGUID()}/"; $edit_link = "" . elgg_echo('edit') . ''; - $delete_url = "{$vars['url']}action/blog/delete?guid={$blog->getGUID()}"; + $delete_url = elgg_get_site_url()."action/blog/delete?guid={$blog->getGUID()}"; $delete_link = "" . elgg_view('output/confirmlink', array( 'href' => $delete_url, 'text' => elgg_echo('delete'), -- cgit v1.2.3