diff options
author | David Lawrence <dkl@mozilla.com> | 2015-07-24 20:01:25 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2015-07-24 20:01:25 +0200 |
commit | 37ffd0fc4894958648e691d3d3470a00369467bf (patch) | |
tree | 47e4d547a8543ea417105039de14848e4663f84f /extensions/SiteMapIndex | |
parent | 5f0d26158234f1a7b960215e03b19441a7f85721 (diff) | |
download | bugzilla-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.pm | 3 |
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(); } |