To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Changeset 4498

Show
Ignore:
Timestamp:
01/23/12 11:59:33 (4 months ago)
Author:
tboutell
Message:

disqus comments respect SSL

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostropheBlogPlugin/branches/1.5/modules/aBlog/templates/_disqus.php

    r3899 r4498  
    1414          (function() { 
    1515           var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; 
    16            dsq.src = "http://<?php echo $disqus_shortname ?>.disqus.com/embed.js"; 
     16           var protocol = "<?php echo $sf_request->isSecure() ? 'https' : 'http' ?>"; 
     17           dsq.src = protocol + "://<?php echo $disqus_shortname ?>.disqus.com/embed.js"; 
    1718           (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); 
    1819          })();