From: Daniel Gruno Date: Sun, 6 May 2012 12:20:27 +0000 (+0000) Subject: xforms X-Git-Tag: 2.5.0-alpha~6890 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6225f5f9fc79693bbf2a790831ac40213fc828d9;p=thirdparty%2Fapache%2Fhttpd.git xforms git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1334612 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/intro.html.en b/docs/manual/rewrite/intro.html.en index 0ffc3eb95a5..4dfdcc3539a 100644 --- a/docs/manual/rewrite/intro.html.en +++ b/docs/manual/rewrite/intro.html.en @@ -347,12 +347,16 @@ to last beyond the testing phase of this system, nor do we in any way guarantee var lang = 'en'; var disqus_shortname = 'httpd'; var disqus_identifier = window.location.href.replace(/(current|trunk)/, "2.4").replace(/\/[a-z]{2}\//, "/") + '.' + lang; - -(function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); +if (disqus_identifier.indexOf("httpd.apache.org") != -1) { + (function() { + var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; + dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js'; + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); + })(); +} else { + var text = document.createTextNode("Comments have been disabled for offline viewing."); + document.getElementById('disqus_thread').appendChild(text); +} //-->