From 7e714fd9945d6563653b3758e91d1a4557702c2c Mon Sep 17 00:00:00 2001 From: Daniel Gruno Date: Sun, 6 May 2012 12:20:27 +0000 Subject: [PATCH] xforms git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1334612 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/rewrite/intro.html.en | 16 ++++++++++------ docs/manual/rewrite/remapping.html.en | 22 +++++++++++++--------- 2 files changed, 23 insertions(+), 15 deletions(-) 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); +} //-->