Commit 17a71b40 authored by wojtha's avatar wojtha Committed by Dave Reid
Browse files

Issue #1363686: Fixed the site_offline variable was renamed to maintenance_mode in Drupal 7.

parent c2c546fd
......@@ -62,7 +62,7 @@ function xmlsitemap_engines_cron() {
function xmlsitemap_engines_can_submit() {
// Skip if the site is offline since search engines will not be able to
// access the site's content.
if (variable_get('site_offline', 0)) {
if (variable_get('maintenance_mode', 0) || defined('MAINTENANCE_MODE')) {
return FALSE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment