Browse Source

bug fix: disqus always want absolute url, so a relative url in config.site.url breaks disqus.

pull/423/head
Bensong Liu 5 years ago
parent
commit
eff6949ac5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      system/includes/functions.php

+ 1
- 1
system/includes/functions.php View File

@ -1859,7 +1859,7 @@ function disqus($title = null, $url = null)
$script = <<<EOF
<script type="text/javascript">
var getAbsolutePath = function(href) {
var link = document.createElement('__dummy_get_absolute_path');
var link = document.createElement('a');
link.href = href;
return link.href;
};


Loading…
Cancel
Save