summaryrefslogtreecommitdiffstats
path: root/extensions/SiteMapIndex
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-07-24 20:01:25 +0200
committerDavid Lawrence <dkl@mozilla.com>2015-07-24 20:01:25 +0200
commit37ffd0fc4894958648e691d3d3470a00369467bf (patch)
tree47e4d547a8543ea417105039de14848e4663f84f /extensions/SiteMapIndex
parent5f0d26158234f1a7b960215e03b19441a7f85721 (diff)
downloadbugzilla-37ffd0fc4894958648e691d3d3470a00369467bf.tar.gz
bugzilla-37ffd0fc4894958648e691d3d3470a00369467bf.tar.xz
Bug 1187498: Disable SiteMapIndex extension if running on under development site instead of production
Diffstat (limited to 'extensions/SiteMapIndex')
-rw-r--r--extensions/SiteMapIndex/Extension.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/SiteMapIndex/Extension.pm b/extensions/SiteMapIndex/Extension.pm
index 4cc384b48..77fb6b54c 100644
--- a/extensions/SiteMapIndex/Extension.pm
+++ b/extensions/SiteMapIndex/Extension.pm
@@ -85,6 +85,9 @@ sub install_before_final_checks {
return;
}
+ return if (correct_urlbase() ne 'https://bugzilla.mozilla.org/');
+
+
$self->_fix_robots_txt();
}