Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
site_verify
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
site_verify
Commits
898124ae
Commit
898124ae
authored
14 years ago
by
Dave Reid
Browse files
Options
Downloads
Patches
Plain Diff
#704176 by Cybergarou: Fixed error importing settings from XML sitemap.
parent
0f2ab49b
No related branches found
Branches containing commit
Tags
6.x-1.0-rc2
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
site_verify.install
+2
-2
2 additions, 2 deletions
site_verify.install
with
2 additions
and
2 deletions
site_verify.install
+
2
−
2
View file @
898124ae
...
...
@@ -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'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment