Permalink
Browse files

added the forgotten shortname variable

  • Loading branch information...
1 parent 33a2057 commit b70bc4251b8e262e5353c1706fff752768ac1d95 @jianingy jianingy committed Dec 2, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 blorgit.rb
View
@@ -255,7 +255,7 @@ def authorized?
#blog_body= @blog.to_html
- if (config['commentable'] and (not @blog.commentable == 'disabled'))
- if (config['commentable'] == 'disqus')
- #comments= render(:haml, :disqus, :locals => {}, :layout => false)
+ #comments= render(:haml, :disqus, :locals => {:shortname => config['disqus']['shortname']}, :layout => false)
- else
#comments= render(:haml, :comments, :locals => {:comments => @blog.comments, :commentable => @blog.commentable}, :layout => false)
- else
@@ -265,7 +265,7 @@ def authorized?
%div{:id => "disqus_thread"}
:javascript
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
- var disqus_shortname = 'example'; // required: replace example with your forum shortname
+ var disqus_shortname = '#{shortname}'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {

0 comments on commit b70bc42

Please sign in to comment.