Skip to content
Snippets Groups Projects
Commit 898124ae authored by Dave Reid's avatar Dave Reid
Browse files

#704176 by Cybergarou: Fixed error importing settings from XML sitemap.

parent 0f2ab49b
No related branches found
Tags 6.x-1.0-rc2
No related merge requests found
......@@ -102,7 +102,7 @@ function site_verify_import_xmlsitemap(&$ret) {
if ($file = db_escape_string(variable_get('xmlsitemap_engines_' . $engine . '_verify', ''))) {
if (!db_result(db_query("SELECT 1 FROM {site_verify} WHERE engine = '%s' AND file <> '$file'", $engine))) {
$file_content = db_escape_string(variable_get('xmlsitemap_engines_' . $engine . '_verify_string', ''));
$ret[] = update_sql("INSERT INTO {site_verify} (engine, file, file_contents) VALUES ('$engine', '$file', '$file_content')");
$ret[] = update_sql("INSERT INTO {site_verify} (engine, file, file_contents, meta) VALUES ('$engine', '$file', '$file_content', '')");
}
}
variable_del('xmlsitemap_engines_' . $engine . '_verify');
......@@ -116,7 +116,7 @@ function site_verify_import_xmlsitemap(&$ret) {
function site_verify_import_ghs(&$ret) {
if (!db_result(db_query("SELECT 1 FROM {site_verify} WHERE engine = 'google' AND file <> 'googlehostedservice.html'"))) {
if ($google_content = db_escape_string(variable_get('ghs_string_verify', ''))) {
$ret[] = update_sql("INSERT INTO {site_verify} (engine, file, file_contents) VALUES ('google', 'googlehostedservice.html', '$google_content')");
$ret[] = update_sql("INSERT INTO {site_verify} (engine, file, file_contents, meta) VALUES ('google', 'googlehostedservice.html', '$google_content', '')");
}
}
variable_del('ghs_string_verify');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment