Skip to content

Commit

Permalink
Added check for target_blog
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Jun 10, 2010
1 parent a181eb4 commit 6847490
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vendor/modules/blog/app/models/blog/blog_post.rb
Expand Up @@ -46,7 +46,11 @@ def revision

# Special permalink for targeted blogs
def target_permalink
"#{self.blog_blog.targeted_blog.url}/#{self.permalink}"
if self.blog_blog.targeted_blog
"#{self.blog_blog.targeted_blog.url}/#{self.permalink}"
else
self.permalink
end
end

def content_node_body(language)
Expand Down

0 comments on commit 6847490

Please sign in to comment.